join Chat Room
Deprecated
Joins a chatroom.
If the chatroom does not exist, the SDK will create and join the chatroom. If it already exists, the SDK will directly join it. The number of historical messages to fetch after successfully joining the chatroom can be set via the `defMessageCount` parameter. -1 indicates no historical messages will be fetched, 0 indicates no special settings and the SDK's default settings will be used (default is to fetch 10 messages), and `defMessageCount` 0 < defMessageCount <= 50
specifies the number of messages to fetch, with a maximum of 50.
Deprecated
5.6.3
Parameters
The ID of the chatroom.
The number of messages to fetch when joining the chatroom. -1 means no messages will be fetched, 0 means 10 messages will be fetched, and the maximum is 50. (When joining the chatroom, the timestamp of the last local message will be passed, and messages after this timestamp will be fetched. For example: if there are 3 messages after this timestamp and `defMessageCount` is set to 10, only 3 messages will be fetched.)
The status callback.
Deprecated
Join a chatroom.
If the chatroom does not exist, the SDK will create and join the chatroom. If it already exists, the SDK will directly join it. You can set the number of historical messages to be retrieved after successfully joining the chatroom by passing in 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.
Deprecated
Since 5.6.3
Parameters
The chatroom ID.
The number of messages to retrieve when entering the chatroom. -1 means no messages will be retrieved, 0 means 10 messages will be retrieved, and the maximum is 50. (When joining the chatroom, the timestamp of the last local message will be passed, and messages after this timestamp will be retrieved. For example: if there are 3 messages after this timestamp and defMessageCount is set to 10, only 3 messages will be retrieved.)
Status callback.
Additional information, with a default maximum length of 128 characters, configurable by the service.