stat method
Returns metadata pertaining to this stream
Implementation
@override
StreamStats stat() {
// Direction needs to be determined based on how the stream was created (inbound/outbound)
// This information should ideally be passed to or be derivable by P2PStreamAdapter
return StreamStats(
direction: _direction, // Use the provided direction
opened: DateTime.now(), // TODO: Get actual open time from when stream was accepted/opened
limited: false, // TODO: Get from scope if available
extra: {},
);
}