joinRoom method

Future<Map> joinRoom(
  1. String roomID
)

Implementation

Future<Map<dynamic, dynamic>> joinRoom(String roomID) async {
  final result = await promiseToFuture(ZIM.getInstance()!.joinRoom(roomID))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}