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

Fire closing event #2434

Merged
merged 2 commits into from
Jan 30, 2020
Merged

Fire closing event #2434

merged 2 commits into from
Jan 30, 2020

Conversation

alvestrand
Copy link
Contributor

@alvestrand alvestrand commented Jan 9, 2020

This fires the closing event only when close was not initiated locally.

Fixes #2433


Preview | Diff

This fires the closing event only when close was not initiated locally.

Fixes #2433
webrtc.html Outdated
@@ -9375,7 +9375,8 @@ <h4>Closing procedure</h4>
<li>
<p>Unless the procedure was initiated by <var>channel</var>.{{RTCDataChannel/close}}, set
<var>channel</var>.<a>[[\ReadyState]]</a> to
{{RTCDataChannelState/"closing"}}.</p>
{{RTCDataChannelState/"closing"}} and <a>fire an event</a>
named "closing" at <var>channel</var></p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing period.

Also, for consistency, we should use same formatting (s/"closing"/closing/) as elsewhere.

@alvestrand alvestrand merged commit bb208f7 into master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to explicitly fire the "closing" event
2 participants