enterRoom method

Future<Map> enterRoom(
  1. dynamic roomInfo,
  2. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> enterRoom(
    dynamic roomInfo, dynamic config) async {
  Object _roomInfo = mapToJSObj(roomInfo);
  Object _config = mapToJSObj(config);
  final result =
      await promiseToFuture(ZIM.getInstance()!.enterRoom(_roomInfo, _config))
          .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}