<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Publisher](./sip.js.publisher.md) &gt; [(constructor)](./sip.js.publisher._constructor_.md)

## Publisher.(constructor)

Constructs a new instance of the `Publisher` class.

<b>Signature:</b>

```typescript
constructor(userAgent: UserAgent, targetURI: URI, eventType: string, options?: PublisherOptions);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  userAgent | <code>UserAgent</code> | User agent. See [UserAgent](./sip.js.useragent.md) for details. |
|  targetURI | <code>URI</code> | Request URI identifying the target of the message. |
|  eventType | <code>string</code> | The event type identifying the published document. |
|  options | <code>PublisherOptions</code> | Options bucket. See [PublisherOptions](./sip.js.publisheroptions.md) for details. |

