Overview

To receive the changes immediately, you need to connect to the Imber web socket service. After creating a contact and receiving the token, connect to the web socket as follows:

Connect to web socket (Socket.io example)

GET https://socket.imber.live/

Query Parameters

NameTypeDescription

contactId

string

id of contact

workSpace

string

id of workSpace

token

string

token of contact or member

{
    "sid":"hK4PqB42v_zJVlHYCxxg",
    "upgrades":[],
    "pingInterval":25000,
    "pingTimeout":60000
}

usage example

import socketIOClient from 'socket.io-client';

const socket = socketIOClient('https://socket.imber.live', {
    query: 'token=:token&workSpace=:workSpaceId&contactId=:contactId',
    transports: ["websocket", "polling", "flashsocket"],
});

Last updated