There was an error while loading. Please reload this page.
1 parent 13af49b commit 6541739Copy full SHA for 6541739
packages/core/realtime-js/src/RealtimeClient.ts
@@ -641,6 +641,10 @@ export default class RealtimeClient {
641
this.conn.onerror = (error: Event) => this._onConnError(error)
642
this.conn.onmessage = (event: any) => this._onConnMessage(event)
643
this.conn.onclose = (event: any) => this._onConnClose(event)
644
+
645
+ if (this.conn.readyState === SOCKET_STATES.open) {
646
+ this._onConnOpen()
647
+ }
648
}
649
650
/**
0 commit comments