Last updated
Last updated
JavaScript Widget Message API
window.chatWidgetApi.chatToAddress
address: Recipient's wallet address
callback: A callback event that returns true for success and false for failure
N/A
window.chatWidgetApi.joinPublicRoom
Automatically join group chat and display the group chat page.
roomId: room ID
callback(optional): function
N/A
window.chatWidgetApi.getUnreadCounts
Get the number of unread messages
Callback function: (num)=>{console.log(num)}
N/A