getRoomSessionById

View as Markdown

getRoomSessionById

  • getRoomSessionById(id): Promise<{roomSessions: RoomSession[] }> - See RoomSession for more details.

Returns a room session given its id. Only in-progress room sessions are currently returned.

Parameters

NameTypeDescription
idstringId of the room session.

Example

1const video = new Video.Client({
2 project: "<project-id>",
3 token: "<project-token>",
4});
5
6const { roomSession } = await video.getRoomSessionById();