File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ spec:html; type:dfn;
34
34
spec:url; type:dfn;
35
35
text:origin
36
36
for:/; text:url
37
+ spec:streams; type:dfn
38
+ text:writable stream writer
37
39
</pre>
38
40
39
41
<pre class=anchors>
@@ -886,7 +888,10 @@ initially unset.
886
888
: {{WebSocketOpenInfo/writable}}
887
889
:: A {{WritableStream}} that can be used to send messages to the server. Each chunk written will
888
890
be converted to one message. Strings will be sent as text messages; {{BufferSource}} chunks will
889
- be sent as binary messages.
891
+ be sent as binary messages. Backpressure due to the network or server being behind will
892
+ automatically be observed by piping. When using a [=writable stream writer=] , waiting for the
893
+ {{WritableStreamDefaultWriter/ready|writer.ready}} promise will ensure that backpressure is
894
+ obeyed.
890
895
891
896
The WebSocket can be closed by calling {{WritableStream/close()}} on
892
897
{{WebSocketOpenInfo/writable}} .
You can’t perform that action at this time.
0 commit comments