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

Issue 10383039: Implemented W3C complient web socket client interface (Closed)

Created:
8 years, 7 months ago by Søren Gjesse
Modified:
8 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implemented W3C complient web socket client interface Fixed a bug where onMessage events could happen before the onOpen event. R=ager@google.com, ajohnsen@google.com, vsm@google.com, jacobr@google.com BUG=dart:2001 TEST=tests/standalone/io/web_socket_test.dart Committed: https://code.google.com/p/dart/source/detail?r=7440

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Addressed second round of comments from ager@ #

Total comments: 8

Patch Set 6 : Addressed additional review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -11 lines) Patch
M runtime/bin/http_impl.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/websocket.dart View 1 2 3 4 5 1 chunk +126 lines, -0 lines 1 comment Download
M runtime/bin/websocket_impl.dart View 1 2 3 4 5 5 chunks +125 lines, -11 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 4 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Søren Gjesse
8 years, 7 months ago (2012-05-07 11:33:21 UTC) #1
Mads Ager (google)
I'd like to proof-read the doc comments for the public interface. The implementation looks good! ...
8 years, 7 months ago (2012-05-07 11:46:57 UTC) #2
Søren Gjesse
Addressed comments from ager@ Fixed a bug related to the onOpen event. http://codereview.chromium.org/10383039/diff/1/runtime/bin/websocket.dart File runtime/bin/websocket.dart ...
8 years, 7 months ago (2012-05-07 12:55:24 UTC) #3
Mads Ager (google)
lgtm https://chromiumcodereview.appspot.com/10383039/diff/1006/runtime/bin/websocket.dart File runtime/bin/websocket.dart (right): https://chromiumcodereview.appspot.com/10383039/diff/1006/runtime/bin/websocket.dart#newcode161 runtime/bin/websocket.dart:161: bool get wasClean(); Document the getters? https://chromiumcodereview.appspot.com/10383039/diff/1006/runtime/bin/websocket.dart#newcode184 runtime/bin/websocket.dart:184: ...
8 years, 7 months ago (2012-05-07 13:01:35 UTC) #4
Søren Gjesse
https://chromiumcodereview.appspot.com/10383039/diff/1006/runtime/bin/websocket.dart File runtime/bin/websocket.dart (right): https://chromiumcodereview.appspot.com/10383039/diff/1006/runtime/bin/websocket.dart#newcode161 runtime/bin/websocket.dart:161: bool get wasClean(); On 2012/05/07 13:01:35, Mads Ager wrote: ...
8 years, 7 months ago (2012-05-07 13:59:20 UTC) #5
vsm
LGTM At some point, we need to reconcile this with the version in dart:html. It'd ...
8 years, 7 months ago (2012-05-07 15:16:07 UTC) #6
Jacob
LGTM https://chromiumcodereview.appspot.com/10383039/diff/1007/runtime/bin/websocket.dart File runtime/bin/websocket.dart (right): https://chromiumcodereview.appspot.com/10383039/diff/1007/runtime/bin/websocket.dart#newcode160 runtime/bin/websocket.dart:160: interface WebSocketCloseEvent default _WebSocketCloseEvent { Is there a ...
8 years, 7 months ago (2012-05-07 16:31:51 UTC) #7
Søren Gjesse
I have opened http://code.google.com/p/dart/issues/detail?id=2958 to track making the interfaces match. https://chromiumcodereview.appspot.com/10383039/diff/1007/runtime/bin/websocket.dart File runtime/bin/websocket.dart (right): https://chromiumcodereview.appspot.com/10383039/diff/1007/runtime/bin/websocket.dart#newcode147 ...
8 years, 7 months ago (2012-05-09 07:53:43 UTC) #8
Jacob
8 years, 7 months ago (2012-05-09 17:06:43 UTC) #9
lgtm

https://chromiumcodereview.appspot.com/10383039/diff/4002/runtime/bin/websock...
File runtime/bin/websocket.dart (right):

https://chromiumcodereview.appspot.com/10383039/diff/4002/runtime/bin/websock...
runtime/bin/websocket.dart:148: interface Event { }
It would be nice if this event interface could be more consistent with w3c.  For
example, expose an event type as a string.

Powered by Google App Engine
This is Rietveld 408576698