Optionalerror?: FunctionCallback function in the event of an error.
The chat message to send. It cannot be undefined, null, or empty.
Optionalsuccess?: FunctionCallback function on success.
OptionaluserId?: numberThe message receiver's userId. If the userId is not provided, the message will be sent to everyone in the meeting.
Determines if the user in the waiting room can send message only to the host or co-host or everyone in the waiting room.
0: send to all
4: send to waiting room
Sends private chat message to meeting participants. This API does not support sending chat messages in a webinar.