Compares two fingerprints for role assignment
First fingerprint
Second fingerprint
1 if a > b, -1 if a < b, 0 if equal
const result = compareFingerprints(localFP, remoteFP);if (result > 0) { role = 'offerer';} else if (result < 0) { role = 'answerer';} else { throw new Error('Cannot connect to self');} Copy
const result = compareFingerprints(localFP, remoteFP);if (result > 0) { role = 'offerer';} else if (result < 0) { role = 'answerer';} else { throw new Error('Cannot connect to self');}
Compares two fingerprints for role assignment