Our own leave also fires the socket's disconnect event, queued, so it was reported twice, and a late one could tear down a reconnect already under way. The event now counts only for the current socket, and not while we leave. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>