mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-13 11:09:26 -04:00
Fix
This commit is contained in:
@@ -93,7 +93,7 @@ export class APIRealtimeClient {
|
||||
// Send a heartbeat ping every 25s
|
||||
this.heartbeat = window.setInterval(() => {
|
||||
if (this.ws.readyState === WebSocket.OPEN) {
|
||||
this.ws.send(JSON.stringify({ type: "ping" }));
|
||||
this.sendMessage('ping', {}).catch(console.error);
|
||||
}
|
||||
}, 25000);
|
||||
if (this.subscriptions.size > 0) {
|
||||
|
||||
Reference in New Issue
Block a user