Room
- Source:
Namespaces
Methods
(inner) getParticipants() → {roomApi.Room.Participant}
Get participants
- Source:
Returns:
(inner) leave() → {Promise.<room>}
Leave room
- Source:
Returns:
- Type
- Promise.<room>
(inner) name() → {String}
Get room name
- Source:
Returns:
Room name
- Type
- String
(inner) on(event, callback) → {roomApi.Room}
Add room event callback.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | One of roomApi.events events |
callback |
roomApi.Room~eventCallback | Callback function |
- Source:
Throws:
-
-
Error if event is not specified
- Type
- TypeError
-
-
-
Error if callback is not a valid function
- Type
- Error
-
Returns:
room
- Type
- roomApi.Room
(inner) publish(options) → {Stream}
Publish stream inside room
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Stream options
Properties
|
- Source:
Returns:
- Type
- Stream