We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4495f59 commit 0a2d0b9Copy full SHA for 0a2d0b9
lib/socket.js
@@ -277,13 +277,8 @@ Socket.prototype.disconnect = function () {
277
if (this.manager.transports[this.id] && this.manager.transports[this.id].open) {
278
this.manager.transports[this.id].onForcedDisconnect();
279
} else {
280
- if (this.manager.open[this.id]) {
281
- // if the connection is open in a different node
282
- this.manager.store.publish('disconnect-force:' + this.id);
283
- } else {
284
- this.manager.onClientDisconnect(this.id);
285
- this.manager.store.publish('disconnect:' + this.id);
286
- }
+ this.manager.onClientDisconnect(this.id);
+ this.manager.store.publish('disconnect:' + this.id);
287
}
288
289
0 commit comments