make sure websocket is ready (#3718)
This commit is contained in:
parent
e26f5d7f4d
commit
7243804536
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue