Skip to content

Commit c611a48

Browse files
committed
Fix authenticate ws before connection bug
1 parent 25ef36a commit c611a48

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
@@ -454,7 +454,7 @@ export class Store {
454454
setCookieAuthentication(this.serverUrl, agent);
455455

456456
this.webSockets.forEach(ws => {
457-
authenticate(ws, this);
457+
ws.readyState === ws.OPEN && authenticate(ws, this);
458458
});
459459

460460
this.resources.forEach(r => {

0 commit comments

Comments
 (0)