1. Session persists in GATHERING state. 2. Added inactive sessions purging, but it does not work.
This commit is contained in:
@@ -32,8 +32,8 @@ class WebSocketService {
|
||||
|
||||
this.ws.onopen = () => {
|
||||
console.log('WebSocket connected');
|
||||
// Directly send registration message on open
|
||||
this.sendMessage({ type: 'REGISTER_CLIENT' });
|
||||
// Send JOIN_SESSION message on open to inform the server of the client and session IDs
|
||||
this.sendMessage({ type: 'JOIN_SESSION', payload: { clientId: this.currentClientId, sessionId: this.currentSessionId } });
|
||||
|
||||
// Start heartbeat to keep connection alive
|
||||
this.heartbeatInterval = setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user