fix: send pong back to client
avoid disconnections every 2.5 minutes
This commit is contained in:
@@ -176,6 +176,9 @@ export class PusherClient {
|
||||
}
|
||||
|
||||
private handleMessage(data: string): void {
|
||||
// Ignore keep-alive pong responses
|
||||
if (data === "pong") return;
|
||||
|
||||
let msg: ServerMessage;
|
||||
try {
|
||||
msg = JSON.parse(data);
|
||||
|
||||
Reference in New Issue
Block a user