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(NostrEvent event, {required void onOk(NostrEventOkCommand ok)})
→ void
-
-
startEventsSubscription({required NostrRequest request})
→ 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