Initializes chat service and establishes socket.io connection with CTLive server
Returns:
Type | Description |
---|---|
JS Promise | An empty Javascript Promise |
Example:
LIVECHAT.init() .then(function() { console.log("[CTLIVE] Initialization completed successfully"); }) .catch(function() { console.log("[CTLIVE] [ERROR] Initialization failed"); });