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"); }, function() { console.log("[CTLIVE] [ERROR] Initialization failed"); } );