getRoomSessionById
getRoomSessionById
- getRoomSessionById(
id):Promise<{ roomSession: RoomSession }>
Returns a room session given its id. Only in-progress room sessions are currently returned.
Parameters
id
Id of the room session.
Example
In this example, we use the getRoomSessions method to get
the currently active room sessions and then use the getRoomSessionById method to get the first room session’s information.
This example assumes that you have already active RoomSession.
Returns
Promise<{ roomSession: RoomSession }>
A promise that resolves to a RoomSession object
that can be used to access the room session’s information and methods.