Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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");
});
  • No labels