diff --git a/webapp/src/wsclient.ts b/webapp/src/wsclient.ts index f3ecb8a98..757a0b830 100644 --- a/webapp/src/wsclient.ts +++ b/webapp/src/wsclient.ts @@ -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 {