Server.create constructor

Server.create({
  1. required List<Service> services,
  2. ServerKeepAliveOptions keepAliveOptions = const ServerKeepAliveOptions(),
  3. List<Interceptor> interceptors = const <Interceptor>[],
  4. CodecRegistry? codecRegistry,
  5. GrpcErrorHandler? errorHandler,
})

Create a server for the given services.

Implementation

Server.create({
  required List<Service> services,
  ServerKeepAliveOptions keepAliveOptions = const ServerKeepAliveOptions(),
  List<Interceptor> interceptors = const <Interceptor>[],
  CodecRegistry? codecRegistry,
  GrpcErrorHandler? errorHandler,
}) : super(
        services,
        interceptors,
        codecRegistry,
        errorHandler,
        keepAliveOptions,
      );