Commit e1cee80
fix: restart periodic ping after client reconnection
The reconnection path (when transport.sessionId is set) returns early,
skipping the startPeriodicPing() call that runs after normal
initialization. Since _onclose() clears the ping timer during
disconnection, connection health monitoring silently stops working
after any reconnect. Adding startPeriodicPing() before the early
return ensures pings resume on reconnection.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 810c72e commit e1cee80
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
| |||
0 commit comments