Signature
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
text | string | The text content of the info message | Yes |
data | Record<string, any> | Optional key-value data to include with the message | No |
Returns
Promise<void>
Throws
An error if there is no active session to send the info message on, or if the session is not established.Example
Sending Structured Data
More Information
- infoSent event — fires when the message is sent
- infoReceived event — fires when a message is received from the remote party