Skip to content

Commit

Permalink
Fix grammatical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ricea committed Jan 23, 2024
1 parent 646edd5 commit 7299740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ initially unset.

: {{WebSocketOpenInfo/writable}}
:: A {{WritableStream}} that can be used to send messages to the server. Each chunk written will
be converted to one messages. Strings will be sent as text messages; {{BufferSource}} chunks will
be converted to one message. Strings will be sent as text messages; {{BufferSource}} chunks will
be sent as binary messages.

The WebSocket can be closed by calling {{WritableStream/close()}} on
Expand All @@ -907,7 +907,7 @@ initially unset.
[=cleanly=] then the promise is rejected. When the connection closes [=cleanly=] the promise is
resolved with an object with properties {{WebSocketCloseInfo/code}} and
{{WebSocketCloseInfo/reason}}, giving [=the WebSocket connection close code=] and [=the WebSocket
connection close reason=] the were supplied by the server.
connection close reason=] that were supplied by the server.

: <code>|socket| . {{WebSocketStream/close()}}</code>
:: Close the connection, optionally supplying an object with {{WebSocketCloseInfo/code}} and
Expand Down

0 comments on commit 7299740

Please sign in to comment.