Server class

Server: dispatches inbound calls to registered methods.

Constructors

Server()

Properties

endpoint → Endpoint?
The endpoint this server is attached to (retained so it outlives serveEndpoint; read loops keep it alive regardless).
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerService(ServiceDesc desc) → void
Adds a service's methods (generated code calls it).
serveEndpoint(Endpoint endpoint) → void
Attach to an existing endpoint (starts its read loop).
serveTransport(Transport transport) → Endpoint
Attach to a transport (even stream ids); returns the Endpoint.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

kindBidi → const String
kindClientStreaming → const String
kindServerStreaming → const String
kindUnary → const String