File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
engine/src/flutter/lib/web_ui/dev
packages/flutter_tools/lib/src/test Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -619,7 +619,11 @@ class BrowserPlatform extends PlatformPlugin {
619
619
}
620
620
621
621
final Completer <WebSocketChannel > completer = Completer <WebSocketChannel >.sync ();
622
- final String path = _webSocketHandler.create (webSocketHandler (completer.complete));
622
+ final String path = _webSocketHandler.create (
623
+ webSocketHandler ((WebSocketChannel webSocket, _) {
624
+ completer.complete (webSocket);
625
+ }),
626
+ );
623
627
final Uri webSocketUrl = url.replace (scheme: 'ws' ).resolve (path);
624
628
final Uri hostUrl = url
625
629
.resolve ('host/index.html' )
Original file line number Diff line number Diff line change @@ -674,7 +674,11 @@ class FlutterWebPlatform extends PlatformPlugin {
674
674
}
675
675
676
676
final Completer <WebSocketChannel > completer = Completer <WebSocketChannel >.sync ();
677
- final String path = _webSocketHandler.create (webSocketHandler (completer.complete));
677
+ final String path = _webSocketHandler.create (
678
+ webSocketHandler ((WebSocketChannel webSocket, _) {
679
+ completer.complete (webSocket);
680
+ }),
681
+ );
678
682
final Uri webSocketUrl = url.replace (scheme: 'ws' ).resolve (path);
679
683
final Uri hostUrl = url
680
684
.resolve ('static/index.html' )
You can’t perform that action at this time.
0 commit comments