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 => {

OK, but I believe it will fail it cleanly, right? Non-cleanly is reserved for cases where the server just goes offline or something, I thought?

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

Received on Tuesday, 28 March 2017 11:46:15 UTC