state
attribute reflects the
presentation connection
's current state. Depending on the current
PresentationConnectionState
,
state
attribute can hold one of the following values.
connecting
: The user agent is attempting to
establish a presentation connection
采用
destination browsing context
. This is the initial state when a
PresentationConnection
对象被创建。
connected
:
presentation connection
is established and communication is possible.
closed
:
presentation connection
has been closed or could not be opened. The connection may be reopened by calling
reconnect
()
. No communication is possible in this state.
terminated
:
receiving browsing context
has terminated. Any
presentation connection
to that
presentation
has also terminated and cannot be reopened. No communication is possible.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
state
|
Chrome 48 | Edge ≤79 | Firefox 51 | IE No | Opera Yes | Safari ? | WebView Android No | Chrome Android 48 | Firefox Android 51 | Opera Android Yes | Safari iOS ? | Samsung Internet Android 5.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。
PresentationConnection
binaryType
state
url