公告
财富商城
积分规则
提问
发文
2019-07-29 22:50发布
太酷不给撩
What it says at the top - for a given client, can I see what rooms they have joined?
Thanks
Given a socket you can get all the rooms it has joined via io.sockets.manager.roomClients[socket.id].
socket
io.sockets.manager.roomClients[socket.id]
See here.
最多设置5个标签!
Given a
socket
you can get all the rooms it has joined viaio.sockets.manager.roomClients[socket.id]
.See here.