PresentationConnectionCloseEvent

The PresentationConnectionCloseEvent interface of the Presentation API is fired on a PresentationConnection when it is closed.

Constructor

PresentationConnectionCloseEvent.PresentationConnectionCloseEvent()
Creates a new PresentationConnectionCloseEvent.

Properties

PresentationConnectionCloseEvent.message Read only
A human-readable message that provides more information about why the connection was closed.
PresentationConnectionCloseEvent.reason Read only
Indicates why the connection was closed. This property takes one of the following values: error, closed, or wentaway.

Specifications

Specification Status Comment
Presentation API
The definition of 'PresentationConnectionCloseEvent interface' in that specification.
Candidate Recommendation Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support50 ?511 ? ? ?
PresentationConnectionCloseEvent constructor50 ?511 ? ? ?
message50 ?511 ? ? ?
reason50 ?511 ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No50 ?511 ? ? ?
PresentationConnectionCloseEvent constructor No50 ?511 ? ? ?
message No50 ?511 ? ? ?
reason No50 ?511 ? ? ?

1. From version 51: this feature is behind the dom.presentation.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Document Tags and Contributors

Contributors to this page: lucian95, david_ross, SarahSakura1990, jpmedley
Last updated by: lucian95,