Server constructor

Server(
  1. TelepactSchema schema,
  2. Future<Message> handler(
    1. Message m
    ),
  3. ServerOptions options
)

Constructs a Server with a schema, handler function, and server options.

Implementation

Server(TelepactSchema schema, Future<Message> Function(Message m) handler,
    ServerOptions options)
    : _server = initServer(schema.telepactSchema, handler, options);