W3cubDocs

/DOM

PresentationConnection.state

The state attribute represents the presentation connection's current state. It can take one of the values of PresentationConnectionState depending on the connection state:

connecting
means that the user agent is attempting to establish a presentation connection with the destination browsing context. This is the initial state when a PresentationConnection object is created.
connected
means that the presentation connection is established and communication is possible.
closed
means that the presentation connection has been closed, or could not be opened. It may be re-opened through a call to reconnect(). No communication is possible.
terminated
means that the receiving browsing context has been terminated. Any presentation connection to that presentation is also terminated and cannot be re-opened. No communication is possible.

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/state