The server now sends regular ping requests to keep connections alive

This commit is contained in:
David Négrier 2020-10-15 13:52:19 +02:00
parent 49a0125f88
commit d098a1b8db
2 changed files with 35 additions and 12 deletions

View file

@ -19,6 +19,7 @@ export interface ExSocketInterface extends WebSocket, Identificable {
emitInBatch: (payload: SubMessage) => void;
batchedMessages: BatchMessage;
batchTimeout: NodeJS.Timeout|null;
pingTimeout: NodeJS.Timeout|null;
disconnecting: boolean,
tags: string[]
}