connect method

Future<Either<ScreenMeetConnectError, bool>> connect(
  1. String roomId,
  2. String userName
)

Connect to the room. Room id is either 6 digits code or 12 letters full room id. userName is your user name that other participants will see

Implementation

Future<Either<ScreenMeetConnectError, bool>> connect(String roomId, String userName) async {
  final Map result = await _channel.invokeMethod(_pm.kConnectCommand, {_pm.kConnectRoomId: roomId, _pm.kConnectUserName: userName});

  if (_pm.isSuccess(result)) { return Right(true);}
  return Left(_pm.connectError(result));
}