<!-- 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; [onConnect](./sip.js.transport.onconnect.md)

## Transport.onConnect property

Callback on state transition to "Connected".

<b>Signature:</b>

```typescript
onConnect: (() => void) | undefined;
```

## Remarks

When the `UserAgent` is constructed, this property is set.

```txt
- The `state` MUST be "Connected" when called.

```

