优化socket.io重连机制

This commit is contained in:
mtvpls
2025-12-09 21:16:15 +08:00
parent a1dc1dc37b
commit 17c2338b02
5 changed files with 334 additions and 17 deletions
+1
View File
@@ -80,6 +80,7 @@ export interface ServerToClientEvents {
'voice:mic-enabled': (data: { userId: string }) => void;
'voice:audio-chunk': (data: { userId: string; audioData: number[]; sampleRate?: number }) => void;
'state:cleared': () => void;
'heartbeat:pong': (data: { timestamp: number }) => void;
'error': (message: string) => void;
}