I have a nodejs websocket server and I have the following problem.
When my clients connect to the server and terminate gracefully the onclose method is
onclose
default ws implementation doesn't have a callback for network disconnects from client side
You can find a keepAlive implementation here