websocket - Netty send final message to ChannelGroup before closing -


i'm new netty , i'm trying implement websocket server. follow examples provided in source code.

i graceful shutdown of netty server , want catch , send last message connected channels , close server. how possible? use defaultchannelgroup

netty version 4.0.24 , have websocket implementation similar examples provided

and following resource: https://gist.github.com/aolshevskiy/1653087

implement maybe beforecloselistener?

thank in advance

finally, have managed adding defaultchannelgroup , sending message connected channels, problem was adding each channel @ stage , ending having nioserversocketchannel instead of niosocketchannel job me.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -