Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update current remote description with fingerprint #1204

Conversation

achingbrain
Copy link
Contributor

Adds a currentRemoteDescription field to PeerConnection which can be updated independently of remoteDescription, the idea being the remoteDescription is the offer received from the remote peer and the currentRemoteDescription is what has actually been negotiated with them.

The currentRemoteDescription is initialised when the remoteDescription is set.

Currently the checkFingerprint method updates the certificate fingerprint used by the connection to the remote peer but I guess other modifications may be useful.

Exposes the currentRemoteDescription via a getter similar to remoteDescription.

Closes #1203
Refs #1166

Adds a `currentRemoteDescription` field to `PeerConnection` which
can be updated independently of `remoteDescription`, the idea being
the `remoteDescription` is the offer received from the remote peer
and the `currentRemoteDescription` is what has actually been
negotiated with them.

The `currentRemoteDescription` is initialised when the
`remoteDescription` is set.

Currently the `checkFingerprint` method updates the certificate
fingerprint used by the connection to the remote peer but I guess
other modifications may be useful.

Exposes the `currentRemoteDescription` via a getter similar to
`remoteDescription`.
achingbrain added a commit to achingbrain/node-datachannel that referenced this pull request Jun 7, 2024
Retrieves the current remote description from libdatachannel to
get the current state of the connection negotiation instead of
returning the previously set remote description.

Depends on: paullouisageneau/libdatachannel#1204
achingbrain added a commit to libp2p/js-libp2p that referenced this pull request Jun 7, 2024
achingbrain added a commit to libp2p/js-libp2p that referenced this pull request Jun 7, 2024
@achingbrain
Copy link
Contributor Author

Superseded by #1206

@achingbrain achingbrain deleted the feat/update-current-remote-description-with-fingerprint branch June 11, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the remote description after SDP negotiation?
1 participant