【m】状态同步
This commit is contained in:
@@ -336,7 +336,7 @@ function onCandidate(ws: WebSocket, message: any): void {
|
||||
onDisconnect(ws, connectionId);
|
||||
} else {
|
||||
// 发送ping消息
|
||||
ws.send(JSON.stringify({ type: "ping" }));
|
||||
ws.send(JSON.stringify({ from: connectionId, to: "", type: "on-message", data: { type: "ping"} }));
|
||||
console.log('WebSocket connection heartbeat, lastActivity: ', (ws as any).lastActivity);
|
||||
}
|
||||
}, 3000);
|
||||
|
||||
Reference in New Issue
Block a user