<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Subscriber](./sip.js.subscriber.md) &gt; [(constructor)](./sip.js.subscriber._constructor_.md)

## Subscriber.(constructor)

Constructor.

<b>Signature:</b>

```typescript
constructor(userAgent: UserAgent, targetURI: URI, eventType: string, options?: SubscriberOptions);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  userAgent | <code>UserAgent</code> | User agent. See [UserAgent](./sip.js.useragent.md) for details. |
|  targetURI | <code>URI</code> | The request URI identifying the subscribed event. |
|  eventType | <code>string</code> | The event type identifying the subscribed event. |
|  options | <code>SubscriberOptions</code> | Options bucket. See [SubscriberOptions](./sip.js.subscriberoptions.md) for details. |

