join Chat Room
Joins a chatroom.
If the chatroom does not exist, the SDK will create and join it. If it already exists, the SDK will join directly. You can specify the number of historical messages to retrieve after successfully joining the chatroom by passing the defMessageCount parameter. -1 indicates no historical messages will be retrieved, 0 indicates no special settings and the SDK will use the default setting (default is 10 messages), and defMessageCount 0 < defMessageCount <= 50
specifies the number of messages to retrieve, with a maximum of 50.
Parameters
The ID of the chatroom.
The number of messages to pull when entering the chatroom. -1 means no messages will be pulled, 0 means 10 messages will be pulled, and the maximum number of messages that can be pulled is 50. (When joining the chatroom, the timestamp of the last local message will be passed, and messages after this timestamp will be pulled. For example: if there are 3 messages after this timestamp and defMessageCount is set to 10, only 3 messages will be pulled.)
The status callback.