File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments