get the history chat list
const historyChatList = chat.getHistory();
console.log(historyChatList);
return the current privilege value
const privilege = chat.getPrivilege();
console.log(privilege);
Get available chat receivers list
send chat message to other
chat.sendMessage('test', userId)
.then(() => {
// success
})
.catch(v => {
// fail
console.log(v)
})
ChatMessage
: successError
: Failure. Following the details of Error:IMPROPER_MEETING_STATE
: It works only when user is in meetingINSUFFICIENT_PRIVILEGES
: chat privilege limitedINVALID_PARAMETERS
: invalid parameterSend message to everyone
message
ExecutedPromise
host or co-Host use it to change chat privilege which defines what kind of role of user that attendee can talk to, there are the different privilege as following.
privilege value | describe | |
---|---|---|
meeting | ChatPrivilege.All | attendee can talk to everyone |
ChatPrivilege.NoOne | attendee can talk to no one | |
ChatPrivilege.EveryonePublicly | attendee can talk to host, manager and everyone |
chat.setPrivilege(ChatPrivilege.All)
.then((v) => {
const { chatPrivilege } = v;
// success
})
.catch(v => {
// fail
console.log(v)
})
executedPromise
Generated using TypeDoc
The chat interface provides the methods define the chat behavior
The chat object can be accessed by
getFeatureModule
method of aZoomMeeting
instance.after joining meeting success, chat interface is available