Server constructor

Server(
  1. RemoteClient client, {
  2. 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(),
  );
}