Skip to content

Commit

Permalink
updates to be forward compatible with changes to package:shelf_web_so…
Browse files Browse the repository at this point in the history
…cket (#3777)
  • Loading branch information
devoncarew authored Dec 10, 2024
1 parent f89332a commit 13d5037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build_daemon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion build_daemon/lib/src/server.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -72,7 +73,7 @@ class Server {

/// Starts listening for build daemon clients.
Future<int> listen() async {
var handler = webSocketHandler((WebSocketChannel channel) async {
var handler = webSocketHandler((WebSocketChannel channel, _) async {
channel.stream.listen((message) async {
dynamic request;
try {
Expand Down

0 comments on commit 13d5037

Please sign in to comment.