PresentationConnection
{{SeeCompatTable}} {{securecontext_header}} {{APIRef("Presentation API")}}
The PresentationConnection interface of the Presentation API provides methods and properties for managing a single presentation. Each presentation connection is represented by a PresentationConnection object. Both the controlling user agent and receiving user agent MUST implement PresentationConnection.
{{InheritanceDiagram}}
Instance properties
{{domxref("PresentationConnection.binaryType")}}{{Experimental_Inline}}- : Returns either blob or arrayBuffer. When a
PresentationConnectionobject is created, itsbinaryTypeIDL attribute MUST be set to the string"arraybuffer".
- : Returns either blob or arrayBuffer. When a
{{domxref("PresentationConnection.id")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Provides the presentation connection identifier.
{{domxref("PresentationConnection.state")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the presentation connection’s current state.
{{domxref("PresentationConnection.url")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the URL used to create or reconnect to the presentation.
Instance methods
{{domxref("PresentationConnection.close()")}}{{Experimental_Inline}}- : Closes the current connection and sends a
{{domxref("PresentationConnectionCloseEvent")}}to{{DOMxRef("PresentationConnection/close", "close")}}event.
- : Closes the current connection and sends a
{{domxref("PresentationConnection.send()")}}{{Experimental_Inline}}- : Sends either binary or text data between a controlling browsing context and a presenting browsing context.
{{domxref("PresentationConnection.terminate()")}}{{Experimental_Inline}}- : Terminates the current connection and fires
{{domxref("PresentationConnection/terminate_event", "terminate")}}event.
- : Terminates the current connection and fires
Events
{{domxref("PresentationConnection/close_event", "close")}}{{Experimental_Inline}}- : Fired when there is a call to
{{DOMxRef("PresentationConnection.close", "PresentationConnection.close()")}}.
- : Fired when there is a call to
{{domxref("PresentationConnection/connect_event", "connect")}}{{Experimental_Inline}}- : Fired when a presentation connection is established.
{{domxref("PresentationConnection/message_event", "message")}}{{Experimental_Inline}}- : Fired when there is a call to
{{DOMxRef("PresentationConnection.send", "PresentationConnection.send()")}}.
- : Fired when there is a call to
{{domxref("PresentationConnection/terminate_event", "terminate")}}{{Experimental_Inline}}- : Fired when there is a call to
{{DOMxRef("PresentationConnection.terminate", "PresentationConnection.terminate()")}}.
- : Fired when there is a call to
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}