chore: add WS ping

This commit is contained in:
Adhiraj Singh
2022-04-18 13:17:29 +05:30
parent ffe38b657a
commit f2bec6a1d1

View File

@@ -353,6 +353,7 @@ export const makeSocket = ({
if(diff > keepAliveIntervalMs + 5000) {
end(new Boom('Connection was lost', { statusCode: DisconnectReason.connectionLost }))
} else if(ws.readyState === ws.OPEN) {
ws.ping()
// if its all good, send a keep alive request
sendNode(
{