Closed satoshinm closed 7 years ago
public void userEventTriggered(final ChannelHandlerContext ctx, Object evt) throws Exception {
is not called when the channel closes, but public void channelInactive(ChannelHandlerContext ctx) {
is, documented in http://netty.io/4.0/api/io/netty/channel/ChannelInboundHandler.html#channelInactive-io.netty.channel.ChannelHandlerContext-
Implemented, but note Glowstone bug: https://github.com/GlowstoneMC/Glowstone/issues/453
Remove the entity and notify other web clients it deleted (D command), remove from maps
problem: how to detect when a websocket disconnects in netty? (there is a regular heartbeat/ping I believe)