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

Refactor DataChannel close message #655

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

paullouisageneau
Copy link
Owner

This PR refactors the DataChannel close message to replace the MESSAGE_CLOSE control message with the more consistent Message::Reset, which is already used to reset the stream in the other direction. It also changes the callback logic for DataChannel: the onClosed callback is now triggered immediately rather than being delayed if messages are pending (i.e. if the user has not set the onMessage callback and did not read all available messages on onAvailable).

@paullouisageneau paullouisageneau merged commit 37f5dc9 into master Jun 13, 2022
@paullouisageneau paullouisageneau deleted the refactor-dc-close-message branch June 13, 2022 19:30
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.

1 participant