I'll be brief. I send a request from the client to the server and pass the key. On the server, I want to check if there is a room with such a key and return the result back to the client. The problem is that I do not know how to implement this check. As in socket io, I’ll clarify (maybe I’m confused in terminology), by key I mean this.
var key = "key"; socket.join(key) I know that you can get a list of all rooms with this code.
var rooms = io.sockets.adapter.rooms; but I don’t know how to find out the key of each room.
I would be grateful for any help.