Web socket get the list of connected users


#1

hi asking if there are any simple ways to get the current size of connected users in a channel, what i did is like this


#2

just solve this by using

var iterator1 = (subscriptions.get(‘chat’))
iterator1.forEach(function(value, key){
console.log(value.id)
})