Skip to content

Commit c826fad

Browse files
committed
Fixed roomClients definition (socketio#378).
1 parent 097094c commit c826fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Manager.prototype.onDispatch = function (room, packet, volatile, exceptions) {
347347

348348
Manager.prototype.onJoin = function (id, name) {
349349
if (!this.roomClients[id]) {
350-
this.roomClients[id] = [];
350+
this.roomClients[id] = {};
351351
}
352352

353353
if (!this.rooms[name]) {

0 commit comments

Comments
 (0)