We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3764cb8 commit a009d71Copy full SHA for a009d71
packages/flutter_driver/lib/src/driver/driver.dart
@@ -937,8 +937,14 @@ void restoreVmServiceConnectFunction() {
937
/// the [VMServiceClient].
938
Future<VMServiceClientConnection> _waitAndConnect(String url) async {
939
Uri uri = Uri.parse(url);
940
+ final List<String> pathSegments = <String>[];
941
+ // If there's an authentication code (default), we need to add it to our path.
942
+ if (uri.pathSegments.isNotEmpty) {
943
+ pathSegments.add(uri.pathSegments.first);
944
+ }
945
+ pathSegments.add('ws');
946
if (uri.scheme == 'http')
- uri = uri.replace(scheme: 'ws', path: '/ws');
947
+ uri = uri.replace(scheme: 'ws', pathSegments: pathSegments);
948
int attempts = 0;
949
while (true) {
950
WebSocket ws1;
0 commit comments