From 7ed378b367556886ae3a96bbd819c1790933874e Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 5 Nov 2015 12:43:05 -0500 Subject: [PATCH] removed override no longer needed --- src/socket.io/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/socket.io/index.js b/src/socket.io/index.js index e78b19a8a1..7175e5a20a 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -45,12 +45,6 @@ function onConnection(socket) { onConnect(socket); - // see https://github.com/Automattic/socket.io/issues/1814 and - // http://stackoverflow.com/questions/25830415/get-the-list-of-rooms-the-client-is-currently-in-on-disconnect-event - socket.onclose = function(reason) { - Object.getPrototypeOf(this).onclose.call(this, {reason: reason, rooms: socket.rooms.slice()}); - }; - socket.on('disconnect', function(data) { onDisconnect(socket, data); }); @@ -79,7 +73,7 @@ function onConnect(socket) { } } -function onDisconnect(socket, data) { +function onDisconnect(socket) { if (socket.uid) { var socketCount = Sockets.getUserSocketCount(socket.uid); if (socketCount <= 1) {