NostrRelaysBase class abstract

Implementers

Constructors

NostrRelaysBase()

Properties

eventsRegistry Map<NostrEventKey, ReceivedNostrEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
relaysWebSocketsRegistry Map<String, WebSocket>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeEventsSubscription(String subscriptionId) → void
init({required List<String> relaysUrl, void onRelayListening(String relayUrl, dynamic receivedData, WebSocket? relayWebSocket)?, void onRelayConnectionError(String relayUrl, Object? error, WebSocket? relayWebSocket)?, void onRelayConnectionDone(String relayUrl, WebSocket? relayWebSocket)?, bool lazyListeningToRelays = false, bool retryOnError = false, bool retryOnClose = false}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
relayInformationsDocumentNip11({required String relayUrl}) Future<RelayInformations>
sendEventToRelays(ReceivedNostrEvent event, {required void onOk(NostrEventOkCommand ok)}) → void
startEventsSubscription({required NostrRequest request, void onEose(NostrRequestEoseCommand ease)?}) NostrEventsStream
startListeningToRelay({required String relay, required void onRelayListening(String relayUrl, dynamic receivedData, WebSocket? relayWebSocket)?, required void onRelayConnectionError(String relayUrl, Object? error, WebSocket? relayWebSocket)?, required void onRelayConnectionDone(String relayUrl, WebSocket? relayWebSocket)?, required bool retryOnError, required bool retryOnClose, required bool shouldReconnectToRelayOnNotice, required Duration connectionTimeout, required bool ignoreConnectionException, required bool lazyListeningToRelays}) → void
toString() String
A string representation of this object.
inherited

Operators

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