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

Issue 204673006: Add admin server that supports web socket API. (Closed)

Created:
6 years, 9 months ago by Bob Nystrom
Modified:
6 years, 9 months ago
Reviewers:
nweiz, keertip
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add admin server that supports web socket API. BUG=https://code.google.com/p/dart/issues/detail?id=16957 R=keertip@google.com, nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=34220

Patch Set 1 #

Total comments: 10

Patch Set 2 : Revise. #

Messages

Total messages: 5 (0 generated)
Bob Nystrom
The existing ports will serve the web socket API, but this creates a dedicated "admin" ...
6 years, 9 months ago (2014-03-19 21:18:47 UTC) #1
nweiz
lgtm https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/src/barback/admin_server.dart File sdk/lib/_internal/pub/lib/src/barback/admin_server.dart (right): https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/src/barback/admin_server.dart#newcode27 sdk/lib/_internal/pub/lib/src/barback/admin_server.dart:27: /// the root directory. This sentence isn't accurate ...
6 years, 9 months ago (2014-03-20 00:40:21 UTC) #2
keertip
lgtm! Will switch over once Nathan's changes to the api are in.
6 years, 9 months ago (2014-03-20 16:33:22 UTC) #3
Bob Nystrom
Committed patchset #2 manually as r34220 (presubmit successful).
6 years, 9 months ago (2014-03-21 00:57:17 UTC) #4
Bob Nystrom
6 years, 9 months ago (2014-03-21 01:01:49 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/barback/admin_server.dart (right):

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/admin_server.dart:27: /// the root
directory.
On 2014/03/20 00:40:21, nweiz wrote:
> This sentence isn't accurate anymore.

Done.

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/admin_server.dart:73:
_webSockets.remove(api);
On 2014/03/20 00:40:21, nweiz wrote:
> Nit: =>

Done.

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/barback/barback_server.dart (right):

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/barback_server.dart:97: @override
On 2014/03/20 00:40:21, nweiz wrote:
> We don't usually use these...

Heh. I was poking at an analyzer issue and forgot to remove that. :)

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/barback/base_server.dart (right):

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/base_server.dart:91: void addResult(T
result) {
On 2014/03/20 00:40:21, nweiz wrote:
> Rather than expose these manually, it may be cleaner to just make
> [resultsController] public.
> 
> This whole file makes me wish we had protected in Dart, though.

Protected would be nice. Making the controller itself public felt a little too
gratuitous, so I figured this was a nice trade-off.

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/barback/build_environment.dart (right):

https://codereview.chromium.org/204673006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/build_environment.dart:146: // The admin
server is bound to one before the base port, unless its
On 2014/03/20 00:40:21, nweiz wrote:
> "its" -> "it's"

Done.

Powered by Google App Engine
This is Rietveld 408576698