Home > sip.js > Transport > send
Send a message.
Signature:
send(message: string): Promise<void>;
Parameter | Type | Description |
---|---|---|
message | string | Message to send. |
Returns:
Promise<void>
- If `state` is "Connecting", rejects with an Error.
- If `state` is "Connected", resolves when the message is sent otherwise rejects with an Error.
- If `state` is "Disconnecting", rejects with an Error.
- If `state` is "Disconnected", rejects with an Error.