Appearance
Interface: RoomsApi
The methods of Talkline.rooms.
Methods
create()
ts
create(body?): Promise<Room>;Parameters
| Parameter | Type |
|---|---|
body? | CreateRoomRequest |
Returns
Promise<Room>
end()
ts
end(sid): Promise<void>;DELETE /v1/rooms/{sid}: everyone in it leaves as evicted; ending an ended room is not an error.
Parameters
| Parameter | Type |
|---|---|
sid | string |
Returns
Promise<void>
evict()
ts
evict(sid, identity): Promise<void>;DELETE /v1/rooms/{sid}/participants/{identity}.
Parameters
| Parameter | Type |
|---|---|
sid | string |
identity | string |
Returns
Promise<void>
get()
ts
get(sid): Promise<RoomDetail>;GET /v1/rooms/{sid}: with the participants in it now and their live tracks.
Parameters
| Parameter | Type |
|---|---|
sid | string |
Returns
Promise<RoomDetail>
iterate()
ts
iterate(query?): AsyncIterable<Room>;GET /v1/rooms, every page in turn.
Parameters
| Parameter | Type |
|---|---|
query? | Pageless<ListRoomsQuery> |
Returns
AsyncIterable<Room>
iterateParticipants()
ts
iterateParticipants(sid, query?): AsyncIterable<Participant>;GET /v1/rooms/{sid}/participants, every page in turn.
Parameters
| Parameter | Type |
|---|---|
sid | string |
query? | Pageless<ListParticipantsQuery> |
Returns
AsyncIterable<Participant>
list()
ts
list(query?): Promise<Page<Room>>;GET /v1/rooms, one page.
Parameters
| Parameter | Type |
|---|---|
query? | ListRoomsQuery |
Returns
listParticipants()
ts
listParticipants(sid, query?): Promise<Page<Participant>>;GET /v1/rooms/{sid}/participants, one page.
Parameters
| Parameter | Type |
|---|---|
sid | string |
query? | ListParticipantsQuery |
Returns
Promise<Page<Participant>>
sendData()
ts
sendData(sid, message): Promise<SendDataResult>;Parameters
| Parameter | Type |
|---|---|
sid | string |
message | SendDataRequest |
Returns
Promise<SendDataResult>
updateParticipant()
ts
updateParticipant(
sid,
identity,
body
): Promise<Participant>;PATCH /v1/rooms/{sid}/participants/{identity}.
Parameters
| Parameter | Type |
|---|---|
sid | string |
identity | string |
body | UpdateParticipantRequest |
Returns
Promise<Participant>