- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 28 Mar 2017 04:47:58 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 28 March 2017 11:48:31 UTC
domenic commented on this pull request.
> @@ -4231,6 +4231,7 @@ promises returned by its <a lt="writable stream writer">writer</a>'s {{WritableS
return new WritableStream({
start(controller) {
ws.onerror = () => controller.error(new Error("The WebSocket errored!"));
+ ws.onclose = () => controller.error(new Error("The server closed the connection unexpectedly!"));
OK, so this definitely needs to be fixed since you can't call controller.error() twice. Not sure about the best way to do that while balancing:
- Giving as much information to the developer as possible (e.g. bad close vs good)
- Keeping the code simple enough for an example
Will noodle on it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/713#discussion_r108399183
Received on Tuesday, 28 March 2017 11:48:31 UTC