Skip to content

Commit 5eb3ea6

Browse files
committed
Fix authenticate ws before connection bug
1 parent 3a2dd02 commit 5eb3ea6

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
@@ -507,7 +507,7 @@ export class Store {
507507
setCookieAuthentication(this.serverUrl, agent);
508508

509509
this.webSockets.forEach(ws => {
510-
authenticate(ws, this);
510+
ws.readyState === ws.OPEN && authenticate(ws, this);
511511
});
512512

513513
this.resources.forEach(r => {

0 commit comments

Comments
 (0)