Skip to main content

Interface: IMeetingRoomService

Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:14

What the product implements on its LiveKit server SDK.

Properties​

url​

readonly url: string

Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:16

The url a participant connects to (wss://…).

Methods​

createRoom()​

createRoom(input): Promise<void>

Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:18

Creates the room, which the server closes when nobody has joined within emptyTimeoutSeconds or departureTimeoutSeconds after the last participant leaves, and which holds at most maxParticipants at once. A room of that name that exists already is not an error (LiveKit's CreateRoom returns it): a dispatch tried again after a failure may ask for a room its first attempt made.

Parameters​

input​
departureTimeoutSeconds​

number

emptyTimeoutSeconds​

number

maxParticipants​

number

name​

string

Returns​

Promise<void>


deleteRoom()​

deleteRoom(name): Promise<void>

Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:20

Deletes the room. For a room that does not exist it must reject with an error whose status is 404 (the LiveKit server SDK's errors carry the response's HTTP status, so passing its error through does).

Parameters​

name​

string

Returns​

Promise<void>


mintToken()​

mintToken(input): Promise<string>

Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:22

Mints a join token for one identity in one room with exactly the publish and subscribe rights given and no right to publish data, valid for ttlSeconds. With the LiveKit server SDK, set canPublishData: false in the grant: left unset, LiveKit allows data wherever canPublish is true.

Parameters​

input​
canPublish​

boolean

canSubscribe​

boolean

identity​

string

room​

string

ttlSeconds​

number

Returns​

Promise<string>