setMeta
setMeta
- setMeta(
meta):Promise<void>
Assigns custom metadata to the RoomSession. You can use this to store metadata whose meaning is entirely defined by your application.
Note that calling this method overwrites any metadata that had been previously set on this RoomSession.
Parameters
meta
The metadata object to assign to the RoomSession.
Returns
Promise<void>
Example
In this example, we set metadata for a room as soon as it starts and then
log the metadata for that room. This example assumes that there is a
RoomSession already active and
that members are joining the room.