From 600145f796382307d5e9f74539733516401443ed Mon Sep 17 00:00:00 2001
From: Adam Bergkvist Let channel have a [[\ReadyState]] internal slot
initialized to Let channel have a [[\BufferedAmount]]
+ internal slot initialized to Let channel have a [[\MaxRetransmits]] internal slot
initialized to option's The Methods
"connecting"
.0
.maxRetransmits
@@ -8892,7 +8896,9 @@ Attributes
bufferedAmount
- attribute MUST return the number of bytes of application data
+ attribute MUST, on getting, return the value of the
+ [[\BufferedAmount]] slot. The attribute exposes the number
+ of bytes of application data
(UTF-8 text and binary data) that have been queued using
send()
but that, as
of the last time the event loop started executing a task, had not
@@ -8901,11 +8907,12 @@ Attributes
whether the user agent is able to transmit text asynchronously
with script execution.) This does not include framing overhead
incurred by the protocol, or buffering done by the operating
- system or network hardware. This attribute's value will only
+ system or network hardware. The value of the
+ [[\BufferedAmount]] slot will only
increase with each call to the send()
method as long as the
- [[\ReadyState]] slot is open
. However, the
- attribute does not reset to zero once the channel closes.
open
; however, the
+ slot does not reset to zero once the channel closes.
bufferedAmountLowThreshold
of type unsigned longstring
object:
Let data be a byte buffer that represents the
- result of encoding the method's argument as UTF-8 and increase the
- bufferedAmount
- attribute with the length of data.
Blob
object:
Let data be the raw data represented by the
- Blob
object and increase the bufferedAmount
attribute by the size
- of data, in bytes.
Blob
object and increase the value of the
+ [[\BufferedAmount]] slot with the size of data, in bytes.
ArrayBuffer
object:
Let data be the data stored in the buffer described
- by the ArrayBuffer
object and increase the
- bufferedAmount
- attribute by the length of the ArrayBuffer
in
- bytes.
ArrayBuffer
object and increase the value of
+ the [[\BufferedAmount]] slot with the the length of the
+ ArrayBuffer
in bytes.
ArrayBufferView
object:
Let data be the data stored in the section of the
buffer described by the ArrayBuffer
object that the
ArrayBufferView
object references and increase the
- bufferedAmount
- attribute by the length of the ArrayBufferView
in
- bytes.
ArrayBufferView
in bytes.
send()
method as long as the
[[\ReadyState]] slot is open
; however, the
- slot does not reset to zero once the channel closes.
+ slot does not reset to zero once the channel closes. When the
+ underlying data transport sends data from its queue, the
+ user agent MUST queue a task that reduces
+ [[\BufferedAmount]] with the number of bytes that was
+ sent.
bufferedAmountLowThreshold
of type unsigned longstring
object:
Let data be a byte buffer that represents the - result of encoding the methods argument as UTF-8 and increase the + result of encoding the method's argument as UTF-8 and increase the value of the [[\BufferedAmount]] slot with the length of data.