PresentationConnection
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
ThePresentationConnection interface of thePresentation API provides methods and properties for managing a single presentation. Eachpresentation connection is represented by aPresentationConnection object. Both thecontrolling user agent andreceiving user agentMUST implementPresentationConnection.
In this article
Instance properties
PresentationConnection.binaryTypeExperimentalReturns either blob or arrayBuffer. When a
PresentationConnectionobject is created, itsbinaryTypeIDL attributeMUST be set to the string"arraybuffer".PresentationConnection.idRead onlyExperimentalProvides the presentation connection identifier.
PresentationConnection.stateRead onlyExperimentalReturns thepresentation connection's current state.
PresentationConnection.urlRead onlyExperimentalReturns the URL used to create or reconnect to the presentation.
Instance methods
PresentationConnection.close()ExperimentalCloses the current connection and sends a
PresentationConnectionCloseEventtocloseevent.PresentationConnection.send()ExperimentalSends either binary or text data between a controlling browsing context and a presenting browsing context.
PresentationConnection.terminate()ExperimentalTerminates the current connection and fires
terminateevent.
Events
closeExperimentalFired when there is a call to
PresentationConnection.close().connectExperimentalFired when a presentation connection is established.
messageExperimentalFired when there is a call to
PresentationConnection.send().terminateExperimentalFired when there is a call to
PresentationConnection.terminate().
Specifications
| Specification |
|---|
| Presentation API> # interface-presentationconnection> |