A library to access the VM Service Protocol.
See the example for a simple use of the library's API.
The VM Service Protocol spec can be found at github.com/dart-lang/sdk/runtime/vm/service/service.md.
Please file feature requests and bugs at the issue tracker.
Servicestream not being handled correctly.
Servicestream are now public.
Eventhas been updated to include the optional
nullcould be returned instead of null for non-
InstanceRefproperties and return values. As a result, some property and return types have been changed from Obj to their correct types.
getVmWsUriFromObservatoryUri, a helper function to convert observatory URIs into the required WebSocket URI for connecting to the VM service.
_Servicestream in the
dart:developershould be handled by the
VmServiceInterfaceimplementation (which should invoke the registered callback directly).
ServiceExtensionRegistryclass, which tracks which clients have registered which service extensions.
VmServerConnectionshould be created per client connection to the server. These should typically all share the same underlying
VmServiceInterfaceinstance, as well as the same
callServiceExtensionmethod to the
VmServerwill delegate all requests whose methods start with
ext.to that implementation.
VmServerclasses, which can handle routing jsonrpc2 requests to a
VmServiceInterfaceinstance, and serializing the responses back.
toJsonmethods to all classes.
3.9of the spec
frameIndexparam for the step call
exceptionPauseModeto the Isolate class
operator==methods to classes supporting object identity
Add this to your package's pubspec.yaml file:
dependencies: vm_service_lib: ^3.22.2
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example.
None of the files in the package's
example/ directory matches known example patterns.
Common filename patterns include
vm_service_lib.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.