ping pong
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user