Working on jackpot

This commit is contained in:
Hepatica
2024-02-24 00:26:39 +01:00
parent 9b4be986f5
commit 921048c969
6 changed files with 272 additions and 21 deletions

View File

@@ -8,6 +8,12 @@ let webSocket;
export function ConnectToChat() {
try {
if (webSocket && webSocket.readyState === WebSocket.OPEN) {
console.log('WebSocket connection already established.');
return;
}
webSocket = new WebSocket(BackendWebSocketUrl);
webSocket.onopen = function () {