API Docs for version 1.2.5200

NodeSDK

Module: Circuit

Summary

Object defining Node.js SDK specific options.

Properties

Active - Client is active

Syntax

Active - Client is active

Unknown

Summary

Client Idle state

EMOTICON_MAPPING

Syntax

EMOTICON_MAPPING

Enum final static

Summary

Emoticon mapping used when Circuit.Client is configured with emoticonMode standard. Can be enhanced or overwritten if needed.

proxyAgent

Syntax

proxyAgent

Object

Summary

HttpsProxyAgent object as defined in https://www.npmjs.com/package/https-proxy-agent. Agent will be used on HTTP(S) request and WebSocket connection within Node SDK. Only applicable to Node.js SDK.

Example:

 // export http_proxy=http://172.20.1.100:8080
                     var HttpsProxyAgent = require('https-proxy-agent');
                     NodeSDK.proxyAgent = new HttpsProxyAgent(url.parse(process.env.http_proxy));

rejectUnauthorized

Syntax

rejectUnauthorized

Boolean

Summary

If true, the server certificate is verified against the list of supplied CAs. An error event is emitted if verification fails; err.code contains the OpenSSL error code. Default: false. Only applicable to Node.js SDK.

Example:

NodeSDK.rejectUnauthorized = true;