Re: [whatwg/streams] Update WebSocket examples (#713)

domenic commented on this pull request.



>      });
+
+    function closeWS(code, reasonString) {
+      return new Promise((resolve, reject) => {
+        ws.onclose = e => {

In the not-clean case? I believe you, but can't quite find it in the spec... all I see for error is

> If the user agent was required to fail the WebSocket connection, or if the the WebSocket connection was closed after being flagged as full, fire an event named error at the WebSocket object.

-- 
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_r108396983

Received on Tuesday, 28 March 2017 11:34:57 UTC