Commit c361bc6
committed
feat: listen to the "offline" event
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: socketio/socket.io-client#14331 parent 6f7c89d commit c361bc6
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
622 | 628 | | |
623 | 629 | | |
624 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
625 | 635 | | |
626 | 636 | | |
627 | 637 | | |
| |||
0 commit comments