Real Time Updates

Web Chat Core SDK

List most recent message of all conversations

const response = await client.messages.list({
  mainPageSize: 50, // Number of conversations to load
  endTime: TIME_STAMP_OF_FIRST_MESSAGE_IN_PREVIOUS_CALL_IF_ANY, // optional this is used for paginated response
});
Audio call notificationAudio call notification

Audio call notification

List most recent message of a user

const response = await client.messages.list({
  userId: 'userId of contact',
  pageSize: 50,
  endTime: TIME_STAMP_OF_FIRST_MESSAGE_IN_PREVIOUS_CALL_IF_ANY, // optional this is used for paginated response
});

List most recent message of a group

const response = await client.messages.list({
  groupId: 'groupId of group',
  pageSize: 50,
  endTime: TIME_STAMP_OF_FIRST_MESSAGE_IN_PREVIOUS_CALL_IF_ANY, // optional this is used for paginated response
});
const response = await client.messages.list({
  mainPageSize: 50, // Number of conversations to load
  pageSize: 50,
  endTime: TIME_STAMP_OF_FIRST_MESSAGE_IN_PREVIOUS_CALL_IF_ANY, // optional this is used for paginated response
});
const result = await client.messages.send({
  to: 'user id of contact',
  message: 'your message content'
});
Send Message to
Conversation details screenConversation details screen

Conversation details screen

Send typing status to a contact

client.sendTypingStatus('userId', 1); // 1 = typing, 0 = not typing

Did this page help you?