The CommandService allows the application to send text messages to all other participants of a specific conference and to redistribute these messages across the EventBus. It also emits the BroadcastEvent to inform that the message is broadcasted and the MessageReceived event to inform that the message is received at the specific conference.
Available in the package com.voxeet.sdk.services.CommandService.
conferenceId: String, @NonNull
message: String): Promise<Boolean>
Sends the message to the conference. The message must be in the form of a string or a representation of strings (json or base64).
|conferenceId||String||non null ID of the conference to which the message will be send|
|message||String||non null content of the message (any possible string)|
Returns: @NonNull Promise<Boolean> - the promise to resolve.
Emitted when the application receives the chat message.
Available in the package com.voxeet.sdk.services.chat.ChatMessageEvent.
The instance of the participant who has sent the message.
The instance of the sent message.
Emitted when the message is broadcasted.
Available in the package com.voxeet.sdk.json.BroadcastEvent.
This object can be accessed through the Websocket.
The instance of the message.
The ID of the participant who has sent the message.
Emitted when the message from the specific participant is received at the specific conference.
Available in the package com.voxeet.sdk.events.sdk.MessageReceived.
The ID of the sender.
The conference ID.
The corresponding message.