A JSON-RPC 2.0 server.
A server exposes methods that are called by requests, to which it provides
responses. Methods can be registered using registerMethod and
registerFallback. Requests can be handled using
Note that since requests can arrive asynchronously and methods can run asynchronously, it's possible for multiple methods to be invoked at the same time, or even for a single method to be invoked multiple times at once.
- done → Future
Returns a Future that completes when the underlying connection is
- isClosed → bool
Whether the underlying connection is closed. [...]
- onUnhandledError → ErrorCallback
A callback that is fired on unhandled exceptions. [...]
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
) → Future
- Closes the underlying connection. [...]
) → Future
- Starts listening to the underlying stream. [...]
dynamic callback(Parameters parameters)) → void
- Registers a fallback method on this server. [...]
String name, Function callback) → void
Registers a method named
nameon this server. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.