add ping on ws connect

This commit is contained in:
2023-05-05 14:30:05 +02:00
parent 8d239729d8
commit f751453a34
+1
View File
@@ -34,6 +34,7 @@ wss.on('connection', function connection(ws: WebSocket & { isAlive: boolean }, r
ws.isAlive = true
}
}
ws.ping();
})
const interval = setInterval(function ping() {