This commit is contained in:
parent
67b849e574
commit
b44830b0f5
@ -40,10 +40,7 @@ export const useTetherWS = (
|
|||||||
// Track the user when the WS connects
|
// Track the user when the WS connects
|
||||||
socket.addEventListener("open", () => {
|
socket.addEventListener("open", () => {
|
||||||
socket.send(JSON.stringify({ op: 0, snowflake: snowflake }));
|
socket.send(JSON.stringify({ op: 0, snowflake: snowflake }));
|
||||||
console.log(
|
console.log("[Tether] WebSocket connection established!");
|
||||||
"[Tether] WebSocket connection established!",
|
|
||||||
snowflake
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
socket.addEventListener("close", connect); // Reconnect on close
|
socket.addEventListener("close", connect); // Reconnect on close
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user