RelayStats class

relay stats

Constructors

RelayStats()

Properties

activeRequests → int
number of active requests on this relay
no setter
connectionErrors ↔ int
number of connection errors
getter/setter pair
connections ↔ int
number of connections
getter/setter pair
dataReadBytes ↔ Map<int, int>
kind as keys, bytes amount as values
getter/setter pair
dataWrittenBytes ↔ Map<int, int>
kind as keys, bytes amount as values
getter/setter pair
eventsRead ↔ Map<int, int>
describes how often the relay was used and returned something useful kind as keys, count as values
getter/setter pair
eventsWritten ↔ Map<int, int>
kind as keys, count as values
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
openRequestIds → Set<String>
ids of the requests open on the connection, so that a request replayed on a socket that came back is not counted twice and a CLOSE that lands late does not count below what is open
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
touched ↔ int
gets incremented on every touch => search if it has a pubkey assigned
getter/setter pair
touchUseful ↔ int
gets incremented when there is a pubkey match
getter/setter pair

Methods

getTotalBytesRead() → int
Get total bytes read this relay
getTotalEventsRead() → int
Get total number of read events in this relay
incStatsByNewEvent(Nip01Event event, int bytes) → void
increment stats by new event
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited