Create new room.
client.rooms.create(['id'], { data: {
name: 'newRoom',
description: 'description'
}}).then(v => {
console.log(v)
})
If you want to change "exit room" link url to be along with your own application, you can update it by exitRoomLink
.
client.rooms.create(['id'], {
data: {
name: 'newRoom',
description: 'description',
exitRoomLink: 'https://yourown.application.com'
}
})
Array of Room key names. Returns specified fields as result.
Delete a room.
client.rooms.delete(['id'], { id: 'xxxxxxxxxxxx' }).then(v => {
console.log(v)
})
Array of Room key names. Returns specified fields as result.
Get a room.
client.rooms.get(['id'], 'xxxxxxxxxxxx').then(v => {
console.log(v)
})
Array of Room key names. Returns specified fields as result.
Room id.
Get list of rooms.
client.rooms.list(['id']).then(v => {
console.log(result)
})
Array of Room key names. Returns specified fields as result.
Generated using TypeDoc
Client to call Rooms schema and mutation for rooms