-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide SCTP Association OnClose callback
The only way to detect a remote connection close is to check the state of the SCTP transport. See: w3c/webrtc-pc#1799 (comment) >In case it wasn't clear, I'm arguing for an exception for data channels, saying pc1.close() should fire close on both ends of a data channel, because A) that is useful, and the only way to detect remote closing of a peer connection, and B) it's a workaround for the fact that closing of peer connections isn't advertised to the other end. Depending on datachannel close to notify us requires out of band protocol agreement as datachannels can be closed by the remote for other reasons. Having access to the SCTP layer we can provide an accurate SCTP Assocation closed event.
- Loading branch information
Showing
2 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters