nativeStats method

  1. @override
Map<String, int> nativeStats()

A snapshot of this transport's delivery counters.

Keys and availability are platform-dependent. Must not throw for a closed transport — return the last snapshot (or an empty/partial map) instead, so post-mortem diagnostics after a disconnect still work.

Implementation

@override
Map<String, int> nativeStats() => {'txDroppedBytes': _txDroppedBytes};