Server constructor

  1. @Deprecated('use Server.create() instead')
Server(
  1. List<Service> services, [
  2. List<Interceptor> interceptors = const <Interceptor>[],
  3. CodecRegistry? codecRegistry,
  4. GrpcErrorHandler? errorHandler,
  5. ServerKeepAliveOptions keepAlive = const ServerKeepAliveOptions(),
])

Create a server for the given services.

Implementation

@Deprecated('use Server.create() instead')
Server(
  super.services, [
  super.interceptors,
  super.codecRegistry,
  super.errorHandler,
  super.keepAlive,
]);