Description

To invoke an action, use the following construction:

window.ReplainAPI('<action>', <parameters>);

Available actions

open

Open chat

Example

window.ReplainAPI('open');

close

Close chat

Example

window.ReplainAPI('close');

isChatOnline

Check that the chat is online

Response Type

Boolean

Example

const isChatOnline = window.ReplainAPI('isChatOnline');

console.log('online:', isChatOnline)

setLanguage