NodeSDK
Summary
Object defining Node.js SDK specific options.
Item Index
Methods
Properties
Methods
removeMentionHtml
Syntax
Summary
Span element for mention is removed and only the mentioned user's name is shown.
Parameters:
-
content
StringMention text with the span element.
Returns:
String:
Returns the mention without the Html.
Example:
const mention = Circuit.Utils.removeMentionHtml('<span class="mention" abbr="0e372ae0-2dff-4439-8f87-1b8a6562f80e">@Roger</span>');
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));