connect method
Implementation
Future<void> connect({
MediaStream? stream,
AyameMetadataOption? metadataOption,
}) async {
logger.info('try connecting');
if (_connectionExists) {
logger.info('connection already exists');
throw AyameConnectionError(reason: 'connection already exists');
}
this.stream = stream;
if (metadataOption != null) {
authnMetadata = metadataOption.authnMetadata;
}
await _signaling();
}