Skip to content

Node.js based forum software built for the modern web

removed override no longer needed

barisusakli7ed378b36755
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) {