Updated session/socket.io conn to handle rank.
This commit is contained in:
parent
a87d498756
commit
be09c2457e
3 changed files with 5 additions and 2 deletions
|
|
@ -79,6 +79,8 @@ module.exports.handleConnection = async function(io, socket){
|
|||
//Get active channel
|
||||
var activeChan = activeChannels.get(socket.chan);
|
||||
|
||||
console.log(socket);
|
||||
|
||||
//If we have more than one active connection
|
||||
if(activeChan.userList.get(socket.user.user).length > 1){
|
||||
//temporarily store list of active user sockets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue