← Back to release summary

Presentation API: implement PresentationConnection.on{connect,close,terminate} and deprecate onstatechange

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 50)
Intent stage
None

Summary

Deprecate `PresentationConnection.onstatechange` and implement explicit state transition events `onconnect`, `onclose`, `onterminate`. Implement `PresentationConnectionCloseEvent` for `onclose`. This allows us to expose a `PresentationConnectionCloseReason` for clients listening for `onclose`.

Standards & signals

View on chromestatus.com