Skip to content

Get Room by Label

map.getRoomByLabel(label)

Returns the ID of a room labelled with the string label

ParamTypeDescription
labelstringThe label to search for

Example

js
const roomId = map.getRoomByLabel("pub");