Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 801 Bytes

sip.js.transport.send.md

File metadata and controls

34 lines (21 loc) · 801 Bytes

Home > sip.js > Transport > send

Transport.send() method

Send a message.

Signature:

send(message: string): Promise<void>;

Parameters

Parameter Type Description
message string Message to send.

Returns:

Promise<void>

Remarks

- 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.