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

NameTypeDescription
messagestringThe message to send.

Returns

Promise<void>


Event handlers

onMessageReceived

onMessageReceived(handler): UnsubscribeFunction

Adds a listener to the event informing about new messages received.

Parameters

NameTypeDescription
handler(data: MessageReceivedEventType) => voidAn event callback function.

Returns

UnsubscribeFunction

A function that unsubscribes from event listeners.


Did this page help you?