mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
"on window close" correct disconnect
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
(!this.isXDomain() || io.util.ua.hasCORS)) {
|
||||
var self = this;
|
||||
|
||||
io.util.on(global, 'beforeunload', function () {
|
||||
io.util.on(global, 'unload', function () {
|
||||
self.disconnectSync();
|
||||
}, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user