handleCandidate method
Handle a candidate.
Implementation
Future<void> handleCandidate(RTCIceCandidate ice) async {
logger.log('handleCandidate: ${ice.toMap()}');
try {
await connection.peerConnection!.addCandidate(ice);
logger.log('Added ICE candidate for:${connection.peer}');
} catch (err) {
connection.provider!.emitError(PeerErrorType.WebRTC.value, err);
logger.log('Failed to handleCandidate, $err');
}
}