RelayManager class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pubKeyMappings
↔ Map<
String, Set< PubkeyMapping> > -
getter/setter pair
-
relays
↔ Map<
String, Relay> -
Global relay registry by url
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
webSockets
↔ Map<
String, WebSocket> -
Global webSocket registry by url
getter/setter pair
Methods
-
connectRelay(
String url, {int connectTimeout = 3}) → Future< bool> - Connect a new relay
-
init(
{List< String> bootstrapRelays = BOOTSTRAP_RELAYS}) → Future<void> - This will initialize the manager with bootstrap relays. If you don't give any, will use some predefined
-
isRelayConnecting(
String url) → bool -
isWebSocketConnecting(
String url) → bool -
isWebSocketOpen(
String url) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
Filter filter, dynamic onEvent(Nip01Event)?) → Future< void> -
request(
String url, Filter filter, dynamic onEvent(Nip01Event)) → Future< Map< String, dynamic> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
BOOTSTRAP_RELAYS
→ const List<
String> - Bootstrap relays from these to start looking for NIP65/NIP03 events