You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quick question for some specifics: so the connection resolves to {readable, writable}
ReadableStream has a close(reason?) and, WritableStream has an abort(reason?), and its Writer also has closeandabort`
do these effect the websocket? if so,
when close(), with/without reason, what websocket code is sent?
when abort(), with/without reason, what websocket code is sent?
when writer.abort(), with/without reason, what websocket code is sent?
cheers
The text was updated successfully, but these errors were encountered:
These do affect the WebSocket. I should clarify this in the explainer.
close() closes with an "unspecified" code, ie. the Close frame has no body. abort() closed with an unspecified code by default, but you can use abort({code, reason}) to send a specific code and reason. For example, abort({code: 4000, reason: 'my reason'}) will close with status code 4000 and reason my reason. I'm not 100% confident that this is the right behaviour, but it is what Chromium implements. writer.close() and writer.abort() behave the same as the same methods on the WritableStream. cancel() on the ReadableStream behaves like abort(), as does reader.cancel().
quick question for some specifics: so the
connection
resolves to{readable, writable}
ReadableStream
has aclose(reason?)
and,WritableStream
has anabort(reason?), and its Writer also has
closeand
abort`do these effect the websocket? if so,
when
close()
, with/without reason, what websocket code is sent?when
abort()
, with/without reason, what websocket code is sent?when
writer.abort()
, with/without reason, what websocket code is sent?cheers
The text was updated successfully, but these errors were encountered: