diff --git a/src/rtmt/rtmt_websocket.ts b/src/rtmt/rtmt_websocket.ts index f0da39b..c984d40 100644 --- a/src/rtmt/rtmt_websocket.ts +++ b/src/rtmt/rtmt_websocket.ts @@ -56,7 +56,6 @@ export class RTMTWS implements RTMT { // sends out pings plus a conservative assumption of the latency. this.pingTimeout = setTimeout(() => { this.ws.close(); - this.ws.onclose?.(new CloseEvent("CONNECTION_LOST")); }, PING_INTERVAL + PING_INTERVAL_BUFFER_TIME); }