Methods
-
closeEventsSubscription(String subscriptionId, [String? relayUrl])
→ void
-
-
freeAllResources()
→ Future<void>
-
-
init({required List<String> relaysUrl, void onRelayListening(String relayUrl, dynamic receivedData, WebSocketChannel? relayWebSocket)?, void onRelayConnectionError(String relayUrl, Object? error, WebSocketChannel? relayWebSocket)?, void onRelayConnectionDone(String relayUrl, WebSocketChannel? 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
-
reconnectToRelays({required void onRelayListening(String relayUrl, dynamic receivedData, WebSocketChannel? relayWebSocket)?, required void onRelayConnectionError(String relayUrl, Object? error, WebSocketChannel? relayWebSocket)?, required void onRelayConnectionDone(String relayUrl, WebSocketChannel? relayWebSocket)?, required bool retryOnError, required bool retryOnClose, required bool shouldReconnectToRelayOnNotice, required Duration connectionTimeout, required bool ignoreConnectionException, required bool lazyListeningToRelays, bool relayUnregistered = true})
→ Future<void>
-
-
relayInformationsDocumentNip11({required String relayUrl, bool throwExceptionIfExists})
→ Future<RelayInformations?>
-
-
sendCountEventToRelays(NostrCountEvent countEvent, {required void onCountResponse(String relay, NostrCountResponse countResponse)})
→ void
-
-
sendCountEventToRelaysAsync(NostrCountEvent countEvent, {required Duration timeout})
→ Future<NostrCountResponse>
-
-
sendEventToRelays(NostrEvent event, {void onOk(String relay, NostrEventOkCommand ok)?})
→ void
-
-
sendEventToRelaysAsync(NostrEvent event, {required Duration timeout})
→ Future<NostrEventOkCommand>
-
-
startEventsSubscription({required NostrRequest request, void onEose(String relay, NostrRequestEoseCommand ease)?, bool useConsistentSubscriptionIdBasedOnRequestData = false})
→ NostrEventsStream
-
-
startEventsSubscriptionAsync({required NostrRequest request, required Duration timeout, void onEose(String relay, NostrRequestEoseCommand ease)?, bool useConsistentSubscriptionIdBasedOnRequestData = false, bool shouldThrowErrorOnTimeoutWithoutEose = true})
→ Future<List<NostrEvent>>
-
-
startListeningToRelay({required String relay, required void onRelayListening(String relayUrl, dynamic receivedData, WebSocketChannel? relayWebSocket)?, required void onRelayConnectionError(String relayUrl, Object? error, WebSocketChannel? relayWebSocket)?, required void onRelayConnectionDone(String relayUrl, WebSocketChannel? 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