diff --git a/src/components/live/live-socket.ts b/src/components/live/live-socket.ts index cc4d31d7c..0b7919a39 100644 --- a/src/components/live/live-socket.ts +++ b/src/components/live/live-socket.ts @@ -225,7 +225,7 @@ export class LiveSocket extends EventTarget { if ( this.webSocket && - [WebSocket.CONNECTING, WebSocket.OPEN].includes(this.webSocket.readyState) + ([WebSocket.CONNECTING, WebSocket.OPEN] as number[]).includes(this.webSocket.readyState) ) { this.stop() }