From 1304c5c7f00e72bd40a440c8f0775d26200d8dd9 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Tue, 17 Feb 2026 03:34:49 +0100 Subject: [PATCH] ping pong --- src/client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.ts b/src/client.ts index 88533a0..657f947 100644 --- a/src/client.ts +++ b/src/client.ts @@ -133,6 +133,10 @@ async function ensureSocket(useLocalhost: boolean): Promise { currentOrigin = null; connecting = null; }; + + ws.on("ping", () => { + ws.pong(); + }); }); return connecting;