getRoomSessions
getRoomSessions
- getRoomSessions():
Promise<{ roomSessions: RoomSession[] }>
Returns the currently active room sessions.
Returns
Promise<{ roomSessions: RoomSession[] }>
A promise that resolves to an array of RoomSession[] objects
that can be used to access the room session’s information and methods.
Example
In this example, we get the currently active room sessions and log their names.
This example assumes that you have already active RoomSession.