Index: sdk/lib/_internal/pub/lib/src/barback/barback_server.dart |
=================================================================== |
--- sdk/lib/_internal/pub/lib/src/barback/barback_server.dart (revision 34273) |
+++ sdk/lib/_internal/pub/lib/src/barback/barback_server.dart (working copy) |
@@ -17,7 +17,7 @@ |
import '../utils.dart'; |
import 'base_server.dart'; |
import 'build_environment.dart'; |
-import 'old_web_socket_api.dart'; |
+import '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 @@ |
void _handleWebSocket(HttpRequest request) { |
Chain.track(WebSocketTransformer.upgrade(request)).then((socket) { |
_webSockets.add(socket); |
- var api = new OldWebSocketApi(socket, environment); |
+ var api = new WebSocketApi(socket, environment); |
return api.listen().whenComplete(() { |
_webSockets.remove(api); |