mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
The connection will be closed once the "offline" event is emitted by the browser, in order not to wait for the heartbeat mechanism to detect the disconnection. Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/offline_event Related: https://github.com/socketio/socket.io-client/issues/1433