stat method

  1. @override
StreamStats stat()
override

Returns metadata pertaining to this stream

Implementation

@override
StreamStats stat() {
  final underlyingStats = _underlyingMuxedStream.stat();
  return StreamStats(
    direction: _direction,
    opened: _opened,
    limited: underlyingStats.limited,
    // protocol is handled by P2PStream.protocol()
  );
}