fix: send pong back to client

avoid disconnections every 2.5 minutes
This commit is contained in:
talksik
2026-04-09 11:42:55 -07:00
parent 7890304639
commit 63eb6aa27f
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -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);