About room delete and query #796
Unanswered
charlescui
asked this question in
Q&A
Replies: 1 comment
-
Hi @charlescui, it is not recommended to access room instances directly, as when you scale to multiple processes/VMs, the room instance itself is not going to be available. You can, however, perform a "remote call" in them, via const rooms = matchMaker.query({/* ... */});
rooms.forEach((room) => {
matchMaker.remoteRoomCall(room.roomId, "disconnect");
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to use the room id to actively delete a room So that matchMaker.query can't find the room data.
I want to get a room instance not a room cache. When I get a room instance, may be I could use room.disconnect() to remove this room instance.
But, I can not get a room instance. I use matchMaker.query, get room cache......
Help me. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions