From 923f67c75b52bac43ad45d6b53514b7e2f414309 Mon Sep 17 00:00:00 2001 From: yjseo29 Date: Tue, 5 Apr 2016 10:31:03 +0900 Subject: [PATCH] modify --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 1f80d80..7d04e38 100644 --- a/app.js +++ b/app.js @@ -122,6 +122,8 @@ io.on('connection',function(socket){ var url = data.url; if(rooms[url] != undefined) { + + if(Object.keys(rooms[url].user_list).length) socket.room = url; socket.join(url); socket.username = data.username;