createConversation(userId);
Call this method to create a conversation with a user
JavaScript
sdk.createConversation("userId");
createConversation("userId");
Properties | Description | Type |
---|---|---|
userId | id of the user | String |
You can call the getOnlineUsers method fetch the list of users to obtain the
userId
.Then to send the message you can call the sendPrivateMessage method to send the private message.