Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它在顶部说什么 - 对于给定的客户,我可以看到他们加入了哪些房间吗?
谢谢
给定 asocket你可以得到它通过 加入的所有房间io.sockets.manager.roomClients[socket.id]。
socket
io.sockets.manager.roomClients[socket.id]
见这里。