Server constructor
Server(
- RemoteClient client, {
- Duration? keepAliveInterval,
Starts serving client, sending a keep-alive every
keepAliveInterval if one is given.
Implementation
Server(this.client, {this.keepAliveInterval}) {
_sub = client.stream.listen(
_handle,
onError: _done.completeError,
onDone: () => _close(),
);
}