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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/barback_server.dart

Issue 208703003: Use the right name for the OldWebSocketApi constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: roll forward web socket change Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/base_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart b/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
index d8d76c0426c33e84a9cd0d53305076150849a7ff..bae6e8062488e1783659f0dc8f9a07d33adcd743 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
@@ -17,7 +17,7 @@ import '../log.dart' as log;
import '../utils.dart';
import 'base_server.dart';
import 'build_environment.dart';
-import 'web_socket_api.dart';
+import 'old_web_socket_api.dart';
/// Callback for determining if an asset with [id] should be served or not.
typedef bool AllowAsset(AssetId id);
@@ -166,7 +166,7 @@ class BarbackServer extends BaseServer<BarbackServerResult> {
void _handleWebSocket(HttpRequest request) {
Chain.track(WebSocketTransformer.upgrade(request)).then((socket) {
_webSockets.add(socket);
- var api = new WebSocketApi(socket, environment);
+ var api = new OldWebSocketApi(socket, environment);
return api.listen().whenComplete(() {
_webSockets.remove(api);
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/base_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698