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); |