make sure websocket is ready (#3718)

This commit is contained in:
Scott Bishel 2022-08-22 12:04:20 -06:00 committed by GitHub
parent e26f5d7f4d
commit 7243804536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,7 +473,7 @@ class WSClient {
} }
hasConn(): boolean { hasConn(): boolean {
return this.ws !== null || this.client !== null return this.ws?.readyState === 1 || this.client !== null
} }
updateHandler(message: WSMessage): void { updateHandler(message: WSMessage): void {