OldRelayManager class
Methods
-
allConnectedRelays(List<String> pubKeys)
→ Map<String, List<PubkeyMapping>>
-
-
broadcastEvent(Nip01Event event, Iterable<String> relays, EventSigner signer)
→ Future<void>
-
-
broadcastSignedEvent(Nip01Event event, String url)
→ Future<void>
-
-
closeAllTransports()
→ Future<void>
-
-
closeIfAllEventsVerified(RelayRequestState request, RequestState state, String url)
→ void
-
-
closeSubscription(String subscriptionId)
→ void
-
-
closeTransport(dynamic url)
→ Future<void>
-
-
connect({Iterable<String> urls = DEFAULT_BOOTSTRAP_RELAYS})
→ Future<void>
-
This will initialize the manager with bootstrap relays.
If you don't give any, will use some predefined
-
connectRelay(String dirtyUrl, {int connectTimeout = DEFAULT_WEB_SOCKET_CONNECT_TIMEOUT})
→ Future<bool>
-
Connect a new relay
-
filterEvent(Nip01Event event)
→ bool
-
-
getConnectedRelays(Iterable<String> urls)
→ List<Relay>
-
-
getRelay(String url)
→ Relay?
-
-
getRelayInfo(String url)
→ Future<RelayInfo?>
-
-
handleEOSE(List eventJson, String url)
→ void
-
-
handleIncomingEvent(List eventJson, String url, dynamic message)
→ void
-
-
isRelayConnected(String url)
→ bool
-
-
isRelayConnecting(String url)
→ bool
-
-
isWebSocketOpen(String url)
→ bool
-
-
logActiveRequests()
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
reconnectRelay(String url, {bool force = false})
→ Future<bool>
-
-
reconnectRelays(Iterable<String> urls)
→ Future<void>
-
-
removeInFlightRequest(RequestState state)
→ void
-
-
removeInFlightRequestById(String id)
→ Future<void>
-
-
send(String url, dynamic data)
→ void
-
-
sendCloseToRelay(String url, String id)
→ void
-
-
startListeningToSocket(String url)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited