小编Ami*_*igo的帖子

Netty SimpleChannelInboundHandler关闭通道

我有扩展SimpleChannelInboundHandler的处理程序.我用它来处理websocket框架.检测该连接的最佳方法是从客户端关闭(浏览器关闭或网络连接崩溃)?我看到ChannelInboundHandlerAdapter中有两种方法:channelUnregistered和channelInactive.我可以用它来检测通道关闭吗?

java websocket netty

3
推荐指数
1
解决办法
3468
查看次数

标签 统计

java ×1

netty ×1

websocket ×1