<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Subscription](./sip.js.subscription.md)

## Subscription interface

Subscription.

<b>Signature:</b>

```typescript
export interface Subscription 
```

## Remarks

https://tools.ietf.org/html/rfc6665

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [autoRefresh](./sip.js.subscription.autorefresh.md) | <code>boolean</code> | If true, refresh subscription prior to expiration. Default is false. |
|  [delegate](./sip.js.subscription.delegate.md) | <code>SubscriptionDelegate &#124; undefined</code> | Subscription delegate. |
|  [id](./sip.js.subscription.id.md) | <code>string</code> | The subscription id. |
|  [subscriptionExpires](./sip.js.subscription.subscriptionexpires.md) | <code>number</code> | Subscription expires. Number of seconds until the subscription expires. |
|  [subscriptionState](./sip.js.subscription.subscriptionstate.md) | <code>SubscriptionState</code> | Subscription state. |

## Methods

|  Method | Description |
|  --- | --- |
|  [dispose()](./sip.js.subscription.dispose.md) | Destroy subscription. |
|  [refresh()](./sip.js.subscription.refresh.md) | 4.1.2.2. Refreshing of Subscriptions https://tools.ietf.org/html/rfc6665\#section-4.1.2.2 |
|  [subscribe(delegate, options)](./sip.js.subscription.subscribe.md) | Send re-SUBSCRIBE request. Refreshing a subscription and unsubscribing. https://tools.ietf.org/html/rfc6665\#section-4.1.2.2 |
|  [unsubscribe()](./sip.js.subscription.unsubscribe.md) | 4.1.2.3. Unsubscribing https://tools.ietf.org/html/rfc6665\#section-4.1.2.3 |

