Skip to content

Commit a226884

Browse files
committed
socket: fixed force disconnect URI
1 parent fb6a4d5 commit a226884

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/socket.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@
355355
Socket.prototype.disconnectSync = function () {
356356
// ensure disconnection
357357
var xhr = io.util.request();
358-
var uri = [
359-
'http' + (this.options.secure ? 's' : '') + ':/'
360-
, this.options.host + ':' + this.options.port
361-
, this.options.resource
362-
, io.protocol
363-
, this.sessionid
364-
].join('/');
365-
358+
var uri = [
359+
'http' + (this.options.secure ? 's' : '') + ':/'
360+
, this.options.host + ':' + this.options.port
361+
, this.options.resource
362+
, io.protocol
363+
, this.sessionid
364+
].join('/') + '?disconnect';
365+
366366
xhr.open('GET', uri, true);
367367
xhr.send(null);
368368

0 commit comments

Comments
 (0)