NostrRequest class

Constructors

NostrRequest.query(String id, {bool closeOnEOSE = true, required EventVerifier eventVerifier, int? timeout = RelayManager.DEFAULT_STREAM_IDLE_TIMEOUT + 1, dynamic onTimeout(NostrRequest)?})
NostrRequest.subscription(String id, {bool closeOnEOSE = false, required EventVerifier eventVerifier})

Properties

closeOnEOSE bool
getter/setter pair
controller StreamController<Nip01Event>
getter/setter pair
didAllRequestsReceivedEOSE bool
no setter
eventVerifier EventVerifier
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
onTimeout ↔ (dynamic Function(NostrRequest)?)
getter/setter pair
requests Map<String, RelayRequest>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldClose bool
no setter
stream Stream<Nip01Event>
no setter
timeout int?
getter/setter pair

Methods

addRequest(String url, List<Filter> filters) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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