Events

After connecting to the Imber socket service, you can receive the new changes as follows:

socket.io example

javascript
javascript
socket.on('EVENT_NAME', (data) => {
// do some stuff
})

The event lists

event name

description

receiver

connect

when socket connected successfully

member

contact

disconnect

when socket disconnected

member

contact

contactUpdated

when a contact details was updated

member

contact

STOP_TYPING

when operator stop typing

contact

START_TYPING

when operator start typing

contact

newMessage

when new message received

member

contact

messageEdited

when a message was edited

member

contact

messageDeleted

when a message was deleted

member

contact

RoomUpdated

when a room was updated

member

contact

REALTIME_TYPING

when real time message was received

member

roomTransfered

when a room was transferred

member

VISITOR_STATUS_CHANGED

when a visitor status changed

member