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
. No communication is possible.reconnect
() 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.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/presentationconnection/state