WebSocket.bufferedAmount
read-only property returns the number of bytes of data that have been queued using calls to
send()
but not yet transmitted to the network. This value resets to zero once all queued data has been sent. This value does not reset to zero when the connection is closed; if you keep calling
send()
, this will continue to climb.
var bufferedAmount = aWebSocket.bufferedAmount;
An
unsigned long
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
HTML 实时标准
The definition of 'WebSocket: bufferedAmount' in that specification. |
实时标准 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
bufferedAmount
|
Chrome Yes | Edge 12 | Firefox Yes | IE ? | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android Yes | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
兼容性未知
WebSocket
binaryType
bufferedAmount
extensions
onclose
onerror
onmessage
onopen
协议
readyState
url