NEWDolby Interactivity APIs are now the Dolby.io Communications APIs Learn More >
X

CommandService

The CommandService allows the application to send text messages or notifications to all conference participants. The service also emits an received event to inform the application about received messages.

Events

received

received(participant: Participant, message: Object): void

Emitted when a participant receives a message.

example

VoxeetSDK.command.on("received", (participant, message) => {});

Parameters:

NameTypeDescription
participantParticipantThe participant who sent the message.
messageObjectThe received message.

Returns: void

Methods

send

send(message: string): Promise‹any›

Sends a message, in the form of a basic stream, to all conference participants.

Parameters:

NameTypeDescription
messagestringThe message to send.

Returns: Promise‹any›


Did this page help you?