Skip to content

Commit abb17bc

Browse files
devoncarewCommit Queue
authored and
Commit Queue
committed
[dds] update dds and dtd to be forward compatible with an upcoming release of package:shelf_web_socket
Change-Id: I7bcbacaad44358759d8856b0bcf0b99120e79e89 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/398584 Reviewed-by: Ben Konyi <[email protected]> Commit-Queue: Devon Carew <[email protected]>
1 parent 94bfadf commit abb17bc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pkg/dds/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Updated `vm_service` constraint to ^14.3.0.
1111
- [DAP] Updated `dap` constraint to ^1.4.0.
1212
- [DAP] Set `supportsANSIStyling` to `true` in debug adapter capabilities to indicate that `Output` events might contain ansi color codes.
13+
- Update to be forward compatible with `package:shelf_web_socket` version `3.x`.
1314

1415
# 4.2.7
1516
- Added a new constant `RpcErrorCodes.kConnectionDisposed = -32010` for requests

pkg/dds/lib/src/dds_impl.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ class DartDevelopmentServiceImpl implements DartDevelopmentService {
343343
.add(_httpHandler());
344344
}
345345

346-
Handler _webSocketHandler() => webSocketHandler((WebSocketChannel ws) {
346+
// Note: the WebSocketChannel type below is needed for compatibility with
347+
// package:shelf_web_socket v2.
348+
Handler _webSocketHandler() => webSocketHandler((WebSocketChannel ws, _) {
347349
final client = DartDevelopmentServiceClient.fromWebSocket(
348350
this,
349351
ws,

pkg/dtd_impl/lib/src/dart_tooling_daemon.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ class DartToolingDaemon {
313313
return innerHandler(request);
314314
};
315315

316-
Handler _webSocketHandler() => webSocketHandler((WebSocketChannel ws) {
316+
// Note: the WebSocketChannel type below is needed for compatibility with
317+
// package:shelf_web_socket v2.
318+
Handler _webSocketHandler() => webSocketHandler((WebSocketChannel ws, _) {
317319
final client = DTDClient.fromWebSocket(
318320
this,
319321
ws,

0 commit comments

Comments
 (0)