Home > sip.js > Messager > (constructor)
Constructs a new instance of the Messager class.
Signature:
constructor(userAgent: UserAgent, targetURI: URI, content: string, contentType?: string, options?: MessagerOptions);| Parameter | Type | Description |
|---|---|---|
| userAgent | UserAgent | User agent. See UserAgent for details. |
| targetURI | URI | Request URI identifying the target of the message. |
| content | string | Content for the body of the message. |
| contentType | string | Content type of the body of the message. |
| options | MessagerOptions | Options bucket. See MessagerOptions for details. |