<!-- 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)

## Publisher class

A publisher publishes a publication (outgoing PUBLISH).

<b>Signature:</b>

```typescript
export declare class Publisher extends EventEmitter 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(userAgent, targetURI, eventType, options)](./sip.js.publisher._constructor_.md) |  | Constructs a new instance of the <code>Publisher</code> class. |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [state](./sip.js.publisher.state.md) |  | <code>PublisherState</code> | The publication state. |
|  [stateChange](./sip.js.publisher.statechange.md) |  | <code>Emitter&lt;PublisherState&gt;</code> | Emits when the publisher state changes. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [dispose()](./sip.js.publisher.dispose.md) |  | Destructor. |
|  [publish(content, options)](./sip.js.publisher.publish.md) |  | Publish. |
|  [unpublish(options)](./sip.js.publisher.unpublish.md) |  | Unpublish. |

