fix: websocket connection of LiveQuery interrupts frequently (#8048)

This commit is contained in:
Layne Bernardo
2022-06-17 06:20:48 -05:00
committed by GitHub
parent 72fac8a5fc
commit 03caae1e61
2 changed files with 32 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ export class ParseWebSocketServer {
wss.onConnection = ws => {
ws.waitingForPong = false;
ws.on('pong', () => {
this.waitingForPong = false;
ws.waitingForPong = false;
});
ws.on('error', error => {
logger.error(error.message);