Sending ping frames to the connected client would be recommendable to detect broken connections: https://github.com/websockets/ws#how-to-detect-and-close-broken-connections.
Note: the server automatically responds to ping frames from clients already, but this is still not enough to always properly detect a broken connection.
Sending ping frames to the connected client would be recommendable to detect broken connections: https://github.com/websockets/ws#how-to-detect-and-close-broken-connections.
Note: the server automatically responds to ping frames from clients already, but this is still not enough to always properly detect a broken connection.