1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00

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 {
return this.ws !== null || this.client !== null
return this.ws?.readyState === 1 || this.client !== null
}
updateHandler(message: WSMessage): void {