diff --git a/build_daemon/CHANGELOG.md b/build_daemon/CHANGELOG.md index 8ade2d1ea..2d6d096cb 100644 --- a/build_daemon/CHANGELOG.md +++ b/build_daemon/CHANGELOG.md @@ -1,6 +1,7 @@ ## 4.0.3-wip - Bump the min sdk to 3.5.0. +- Update to be forward compatible with changes to `package:shelf_web_socket`. ## 4.0.2 diff --git a/build_daemon/lib/src/server.dart b/build_daemon/lib/src/server.dart index de02f59b7..0942086ef 100644 --- a/build_daemon/lib/src/server.dart +++ b/build_daemon/lib/src/server.dart @@ -1,6 +1,7 @@ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. + import 'dart:async'; import 'dart:convert'; import 'dart:io'; @@ -72,7 +73,7 @@ class Server { /// Starts listening for build daemon clients. Future listen() async { - var handler = webSocketHandler((WebSocketChannel channel) async { + var handler = webSocketHandler((WebSocketChannel channel, _) async { channel.stream.listen((message) async { dynamic request; try {