mashupbots / socko

A Scala web server powered by Netty networking and AKKA processing.
Other
255 stars 51 forks source link

WS onClose is not triggered if client machine gets hard restart. #101

Open gfduszynski opened 9 years ago

gfduszynski commented 9 years ago

I'm creating WS connection from nodejs to socko 6.0 (also in 5.0). If I use CTRL + C to kill client app onClose works properly.

If i use hardware reboot or disconnect wifi antenna onClose is not triggered.

Probably netty related since: nettyInstance.webSocketConnections.allWebSocketChannels.toArray()

still shows the connection present.

gfduszynski commented 9 years ago

I could not find any info on WS Ping/Pong. Probably there should be an option to perform ping on a given websocket or better to specify during WS authorization that we want ping's to be sent at specified intervals. WS that are not responding should be closed.