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

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.
means that the presentation connection is established and communication is possible.
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.
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.


© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.