Relay class

Implementers

Constructors

Relay(String url)

Properties

connecting bool
is it connecting
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
info RelayInfo?
relay info
getter/setter pair
lastConnectTry int?
last connection try timestamp
getter/setter pair
lastSuccessfulConnect int?
last successful connection
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats RelayStats
relay stats
getter/setter pair
url String
relay url
getter/setter pair

Methods

failedToConnect() → void
mark as failed to connect
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
succeededToConnect() → void
mark as succeded to connect
supportsNip(int nip) bool
does this relay support given nip
toString() String
A string representation of this object.
inherited
tryingToConnect() → void
set trying to connect
wasLastConnectTryLongerThanSeconds(int seconds) bool
was last connection try longer than given seconds

Operators

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