<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [PublisherOptions](./sip.js.publisheroptions.md) &gt; [unpublishOnClose](./sip.js.publisheroptions.unpublishonclose.md)

## PublisherOptions.unpublishOnClose property

If set true, UA will gracefully unpublish for the event on UA close.

<b>Signature:</b>

```typescript
unpublishOnClose?: boolean;
```
