ConnectionServer class
A gRPC server that serves via provided ServerTransportConnection
s.
Unlike Server, the caller has the responsibility of configuring and managing the connection from a client.
- Implementers
Constructors
-
ConnectionServer.new(List<
Service> services, [List<Interceptor> interceptors = const <Interceptor>[], CodecRegistry? codecRegistry, GrpcErrorHandler? errorHandler, ServerKeepAliveOptions _keepAliveOptions = const ServerKeepAliveOptions()]) -
Create a server for the given
services
.
Properties
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