channel

Message. channel

new channel()

session read message
Returns:
message:object

Methods

set(options)

Building session read message marks the entire session as read messages, and unread message number is 0 when pulling the session list
Example
let message = New Message('channel', id); message.set({chatType: 'singleChat', to: 'user1'})
Parameters:
Name Type Description
options Object -
Properties
Name Type Description
chatType String chat type, optional value: singleChat、groupChat、chatRoom
to String userId of the receiver
Returns:
Void