How To Use SetOnRoomChange And SetOnRoomChangeByID
Diarkis Room comes with an event listener of any change that happens with rooms.
You may assign a callback to be invoked when the following changes happen to existing rooms:
A new member joins a room
A member leaves a room
Room properties or property is changed
Event Types
The callback will have a room ID to tell you which you's event it is, and the event type to help you understand what happened.
New Member Joins A Room
A Member Leaves A Room
Property Change
Callback Example SetOnRoomChange
This callback is applied to all existing rooms.
Callback Example SetOnRoomChangeByID
This callback is applied to a specific room with the given room ID.
PreviousHow To Use Room MappingNextRetrieve Number of Room Members When Searching Rooms In MatchMaker
Last updated