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.
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.15.1+1
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|3.15.1+1||Apr 24, 2019|
|3.15.1||Apr 23, 2019|
|3.15.0||Apr 14, 2019|
|3.14.2||Feb 8, 2019|
|3.14.1||Feb 6, 2019|
|0.3.10+2||Jan 18, 2019|
|0.3.10+1||Jan 12, 2019|
|0.3.10||Nov 1, 2018|
|0.3.9+2||Oct 8, 2018|
|0.3.9+1||Sep 27, 2018|
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 Apr 24, 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.