ping pong

This commit is contained in:
2026-02-17 03:34:49 +01:00
parent 4376d780c0
commit 1304c5c7f0
+4
View File
@@ -133,6 +133,10 @@ async function ensureSocket(useLocalhost: boolean): Promise<WebSocket> {
currentOrigin = null; currentOrigin = null;
connecting = null; connecting = null;
}; };
ws.on("ping", () => {
ws.pong();
});
}); });
return connecting; return connecting;