CommandService
The CommandService allows the application to send and receive text messages and notifications during a conference.
Methods
send
▸ send(message
): Promise
<void
>
Sends a message to all conference participants.
Parameters
Name | Type | Description |
---|---|---|
message | string | The message to send. |
Returns
Promise
<void
>
Event handlers
onMessageReceived
▸ onMessageReceived(handler
): UnsubscribeFunction
Adds a listener to the event informing about new messages received.
Parameters
Name | Type | Description |
---|---|---|
handler | (data : MessageReceivedEventType) => void | An event callback function. |
Returns
A function that unsubscribes from event listeners.
Updated over 1 year ago