<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [SubscriptionDelegate](./sip.js.subscriptiondelegate.md) &gt; [onRefresh](./sip.js.subscriptiondelegate.onrefresh.md)

## SubscriptionDelegate.onRefresh() method

Sent a SUBSCRIBE request. This includes "auto refresh" in dialog SUBSCRIBE requests only. Thus SUBSCRIBE requests triggered by calls to `refresh()` or `subscribe()` will not be provided. Thus the first SUBSCRIBE (the subscription creating SUBSCRIBE) will not be provided.

<b>Signature:</b>

```typescript
onRefresh?(request: OutgoingSubscribeRequest): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  request | <code>OutgoingSubscribeRequest</code> | Outgoing SUBSCRIBE request. |

<b>Returns:</b>

`void`

