Server class
A server for processing requests and sending responses.
Constructors
-
Server(TelepactSchema schema, Future<
Message> handler(Message m), ServerOptions options) - Constructs a Server with a schema, handler function, and server options.
Properties
- 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
-
process(
Uint8List requestMessageBytes) → Future< Uint8List> - Processes a request message and returns the response as a Uint8List.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initServer(
TelepactSchema schema, Future< Message> handler(Message im), ServerOptions options) → Server - Initializes the server with the schema, handler function, and options.