Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 10907047: Use onClosed instead of onError in the WebSocket classes. (Closed)

Created:
8 years, 3 months ago by Anders Johnsen
Modified:
8 years, 3 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use onClosed instead of onError in the WebSocket classes. There is a remaining onerror in 'class WebSocket', but as it's documented (though unused in the spec), we've left it in for completeness. BUG= Committed: https://code.google.com/p/dart/source/detail?r=11785

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -97 lines) Patch
M runtime/bin/websocket.dart View 2 chunks +0 lines, -12 lines 0 comments Download
M runtime/bin/websocket_impl.dart View 1 27 chunks +44 lines, -76 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 5 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
Maybe, most importantly, this fixes default values for close code and reason.
8 years, 3 months ago (2012-09-03 14:30:08 UTC) #1
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/10907047/diff/1/runtime/bin/websocket_impl.dart File runtime/bin/websocket_impl.dart (right): https://chromiumcodereview.appspot.com/10907047/diff/1/runtime/bin/websocket_impl.dart#newcode220 runtime/bin/websocket_impl.dart:220: } catch (e, s) { Are you using ...
8 years, 3 months ago (2012-09-04 07:17:10 UTC) #2
Anders Johnsen
PTAL https://chromiumcodereview.appspot.com/10907047/diff/1/runtime/bin/websocket_impl.dart File runtime/bin/websocket_impl.dart (right): https://chromiumcodereview.appspot.com/10907047/diff/1/runtime/bin/websocket_impl.dart#newcode220 runtime/bin/websocket_impl.dart:220: } catch (e, s) { On 2012/09/04 07:17:10, ...
8 years, 3 months ago (2012-09-04 07:21:27 UTC) #3
Søren Gjesse
8 years, 3 months ago (2012-09-04 08:43:51 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698