fix auth flow on subsequent loads

This commit is contained in:
ProgrammerIn-wonderland
2025-05-20 16:40:38 -04:00
parent da66b03163
commit 9fdca11070

View File

@@ -36,13 +36,13 @@ export class PSocket extends EventListener {
})).json());
wispInfo.handler = new PWispHandler(wispServer, wispToken);
// Wait for websocket to fully open
await new Promise((res, req) => {
wispInfo.handler.onReady = res;
});
}
// Wait for websocket to fully open
await new Promise((res, req) => {
wispInfo.handler.onReady = res;
});
const callbacks = {
dataCallBack: (data) => {