ConnectionServer class

A gRPC server that serves via provided ServerTransportConnections.

Unlike Server, the caller has the responsibility of configuring and managing the connection from a client.

Implementers

Constructors

ConnectionServer(List<Service> services, [List<Interceptor> interceptors = const <Interceptor>[], CodecRegistry? codecRegistry, GrpcErrorHandler? errorHandler, ServerKeepAliveOptions _keepAliveOptions = const ServerKeepAliveOptions()])
Create a server for the given services.

Properties

handlers Map<ServerTransportConnection, List<ServerHandler>>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

lookupService(String service) Service?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serveConnection({required ServerTransportConnection connection, X509Certificate? clientCertificate, InternetAddress? remoteAddress}) Future<void>
serveStream_({required ServerTransportStream stream, X509Certificate? clientCertificate, InternetAddress? remoteAddress, Sink<void>? onDataReceived}) → ServerHandler
toString() String
A string representation of this object.
inherited

Operators

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