Skip to content

Commit de98215

Browse files
committed
Fix authenticate ws before connection bug
1 parent c7aa750 commit de98215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export class Store {
480480
setCookieAuthentication(this.serverUrl, agent);
481481

482482
this.webSockets.forEach(ws => {
483-
authenticate(ws, this);
483+
ws.readyState === ws.OPEN && authenticate(ws, this);
484484
});
485485

486486
this.resources.forEach(r => {

0 commit comments

Comments
 (0)