sendAppMessage(data, recipient?)
Sends a message to other participants during the call. Messages are delivered only to participants currently in the call — they are not stored or replayed for late joiners. Broadcast messages are not delivered to the sender.
Parameters
A JSON-serializable object. Must be within the 4KB size limit.
Who should receive the message. Pass a participant
session_id, an array of session_ids, or '*' to broadcast to everyone. Defaults to '*'.Note: use session_id, not user_id.Return value
Returnsthis for chaining.