You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, so I've seen from the documentation that it's possible to get the list of channels that a client is subscribed to. Is there any way to see a list of clients ID's (across all nodes / machines) that are subscribed to a particular channel?
The text was updated successfully, but these errors were encountered:
for(leti=0;i<Object.keys(AGServer.clients).length;i++){constclientId=Object.keys(AGServer.clients)[i];// id of the socket// This will return an object of channels eg { testChannel: true }, which means the client is subscribed to testChannel and cleared if the client unsubscribes againconsole.log(AGServer.clients[clientId].channelSubscriptions)}
However I didn't test this across node / machines but I presume it should work.
Hey guys, so I've seen from the documentation that it's possible to get the list of channels that a client is subscribed to. Is there any way to see a list of clients ID's (across all nodes / machines) that are subscribed to a particular channel?
The text was updated successfully, but these errors were encountered: