<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Transport](./sip.js.transport.md) &gt; [send](./sip.js.transport.send.md)

## Transport.send() method

Send a message.

<b>Signature:</b>

```typescript
send(message: string): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  message | <code>string</code> | Message to send. |

<b>Returns:</b>

`Promise<void>`

## Remarks


```txt
- 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.

```

