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