blob: f8769f5c84bf6af56ce64982047fa1ef42724fe4 [file] [log] [blame]
// Copyright (c) 2020, 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.
// @dart=2.10
// This file must be compiled for changes to be picked up.
// Run the following command from the root of this package if this file is
// updated:
// dart2js -o test/web/sse_smoke_driver.dart.js test/web/sse_smoke_driver.dart
import 'dart:convert';
import 'package:async/async.dart';
import 'package:sse/client/sse_client.dart';
import 'package:vm_service/vm_service.dart';
Future<void> main() async {
// Connect to test server
final channel = SseClient('/test');
final testerStream = StreamQueue<String>(;
// Connect to DDS
final ddsUri = await;
final ddsChannel = SseClient(ddsUri);
final vmService = VmService(,
(e) => ddsChannel.sink.add(e),
final version = await vmService.getVersion();