netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Listener ping package

Open clownleo opened this issue 10 years ago • 1 comments

How can I listen 'ping' and send 'pong' by my custom handler?

clownleo avatar Mar 07 '16 12:03 clownleo

you can use method addPingListener

SocketIOServer server = new SocketIOServer(config);
server.addPingListener(client -> log.info(client.getSessionId()));

fantiq avatar Sep 15 '20 04:09 fantiq