ServerTransportConnection.viaStreams constructor

ServerTransportConnection.viaStreams(
  1. Stream<List<int>> incoming,
  2. StreamSink<List<int>> outgoing,
  3. {ServerSettings settings: const ServerSettings(concurrentStreamLimit: 1000)}
)

Implementation

factory ServerTransportConnection.viaStreams(
    Stream<List<int>> incoming, StreamSink<List<int>> outgoing,
    {ServerSettings settings:
        const ServerSettings(concurrentStreamLimit: 1000)}) {
  if (settings == null) settings = const ServerSettings();
  return new ServerConnection(incoming, outgoing, settings);
}