Files
sdk/pkg/dtd_impl
Kenzie Davisson 943f4c6945 Add ConnectedAppService to DTD to store the connections to Dart and Flutter applications that DTD is aware of.
This service contains three methods and sends events over a stream:

Methods:
- `registerVmService(String uri, String secret)`
- `unregisterVmService(String uri, String secret)`
- `getVmServiceUris()`

Stream events:
- Sends `VmServiceRegistered` and `VmServiceUnregistered` events over the `ConnectedApp` stream.

Bug: https://github.com/dart-lang/sdk/issues/60540

Change-Id: Ica90d1d14ea83b38f24b4229313effb628cf2d94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427568
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2025-05-20 09:46:50 -07:00
..
2025-01-21 14:08:20 -08:00
2023-12-19 00:54:12 +00:00
2024-02-13 16:17:18 +00:00

Dart Tooling Daemon

The server implementation for the Dart Tooling Daemon. This is meant to be run by our internal tooling and facilitates communication between our internal tools.

For details on the protocol used to communicate with the Dart Tooling Daemon see The DTD Protocol

Running the Dart Tooling Daemon

Compiled version

To run the tooling daemon compiled with the Dart SDK:

  1. Build the Dart SDK
  • make sure to build with create_platform_sdk
  • e.g. ./tools/build.py create_platform_sdk
  1. run dart tooling-daemon

    :info The dart binary should be the one you just built in step 1.

Testing changes

To quickly test changes to the tooling daemon, start it by running:

dart run bin/dtd.dart