netty-websocket-spring-boot-starter icon indicating copy to clipboard operation
netty-websocket-spring-boot-starter copied to clipboard

你好,客户端使用okhttp 的,都是框架自带的,现在找不到原因了,

Open xieende opened this issue 4 years ago • 1 comments

你好,客户端使用okhttp 的,都是框架自带的,现在找不到原因了, 那么,我现在判断客户端是不是在线,是不是就不能用这个onclose 事件了,也即是咱们代码的channelInactive,用Idle这个事件判断客户端在不在线行吗?

Originally posted by @xieende in https://github.com/YeautyYE/netty-websocket-spring-boot-starter/issues/105#issuecomment-602438021

xieende avatar Mar 23 '20 07:03 xieende

你好,客户端使用okhttp 的,都是框架自带的,现在找不到原因了, 那么,我现在判断客户端是不是在线,是不是就不能用这个onclose 事件了,也即是咱们代码的channelInactive,用Idle这个事件判断客户端在不在线行吗?

Originally posted by @xieende in #105 (comment)

没用过okhttp,客户端可能有些什么自己的配置方式 如果和chrome一致的话,不会有问题

YeautyYE avatar Mar 24 '20 05:03 YeautyYE