- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 10 Dec 2014 14:03:11 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 10 December 2014 22:03:44 UTC
Oh, very interesting. Quoting from https://html.spec.whatwg.org/multipage/comms.html#garbage-collection-3: > If a WebSocket object is garbage collected while its connection is still open, the user agent must start the WebSocket closing handshake, with no status code for the Close message. In streams terms, this would be equivalent to automatically calling `webSocket.readable.cancel()` + `webSocket.writable.abort()` upon GC of `webSocket`. You're totally right that this is not doable in JS as it stands. How sad. I don't really know what to say :( --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/252#issuecomment-66532582
Received on Wednesday, 10 December 2014 22:03:44 UTC