net: prioritize close-event reconnect with 2s delay and 3 retry cap
This commit is contained in:
@@ -47,8 +47,10 @@ Core incoming message effects:
|
||||
|
||||
## Stale Connection Recovery
|
||||
|
||||
- While running, client sends heartbeat `ping` every 10 seconds.
|
||||
- If one heartbeat `pong` is missed (10-second interval), client auto-reconnects.
|
||||
- If websocket closes unexpectedly, client starts reconnect flow immediately.
|
||||
- While running, client also sends heartbeat `ping` every 10 seconds (fallback for silent half-open cases).
|
||||
- If one heartbeat `pong` is missed (10-second interval), client starts reconnect flow.
|
||||
- Reconnect flow waits 2 seconds and retries up to 3 times.
|
||||
- If reconnect lands on a different `welcome.serverInfo.instanceId`, client announces server restart.
|
||||
- Connect/reconnect status message is emitted from `welcome` and includes server version.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user