ServerBase class abstract

A base class for all generated JSON RPC servers that wraps the Server.

Implementers

Constructors

ServerBase(StreamChannel<String> channel, {ErrorCallback? onUnhandledError, bool strictProtocolChecks = true})
See Server.
ServerBase.fromServer(Server jsonRpcInstance)
Creates a new instance from an existing server.
ServerBase.withoutJson(StreamChannel channel, {ErrorCallback? onUnhandledError, bool strictProtocolChecks = true})
See Server.withoutJson.

Properties

done Future<void>
See Server.done.
no setter
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
See Server.isClosed.
no setter
jsonRpcInstance Server
The internally use JSON-RPC server to handle requests to the server.
final
onUnhandledError ErrorCallback?
See Server.onUnhandledError.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strictProtocolChecks bool
See Server.strictProtocolChecks.
no setter

Methods

close() Future<void>
See Server.close.
listen() Future<void>
See Server.listen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUnknownMethod(Parameters params) FutureOr
Can be overridden to implement custom handling for unknown method calls.
registerMethods() → void
Internal helper method to register server methods.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited