/
joinContact

joinContact

Add a partecipant to an existing chat room.

Parameters:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

chat_id

YES

STRING

Unique Chat identifier

Returns:

Type

Description

Type

Description

JS Promise

A Javascript Promise that return an istance of the joined chat

Example:

LIVECHAT.joinContact(contact.id) .then(function (contact) { console.log("[CTLIVE WIDGET] Contact Joined", contact); }) .catch(function () { console.log("[CTLIVE WIDGET] [ERROR] Contact Join"); });

Related content

newContact
newContact
More like this
Join an existing chat
Join an existing chat
More like this
init
init
More like this
SendLink
SendLink
More like this
getTranscriptByChatID
getTranscriptByChatID
More like this
sendMessage
sendMessage
More like this