joinChatRoom method Null safety
- String roomId
Joins the chat room.
To exit the chat room, call {@link #leaveChatRoom(String)}.
Param roomId
The ID of the chat room to join.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> joinChatRoom(String roomId) async {
Map result = await _channel
.invokeMethod(ChatMethodKeys.joinChatRoom, {"roomId": roomId});
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}