Fixed small issue
This commit is contained in:
+2
-2
@@ -42,12 +42,12 @@ async function ensureSocket(useLocalhost: boolean): Promise<WebSocket> {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const ws = new WebSocket(getWsOrigin(useLocalhost));
|
const ws = new WebSocket(getWsOrigin(useLocalhost));
|
||||||
|
|
||||||
ws.onopen = () => {
|
ws.onopen = async () => {
|
||||||
socket = ws;
|
socket = ws;
|
||||||
|
|
||||||
console.log("Authenticating with cookies:", getCookies());
|
console.log("Authenticating with cookies:", getCookies());
|
||||||
|
|
||||||
sendUnsafe(useLocalhost, { cookies: getCookies() });
|
await sendUnsafe(useLocalhost, { cookies: getCookies() });
|
||||||
|
|
||||||
resolve(ws);
|
resolve(ws);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user