JitEngine class

Implemented types
Mixed-in types

Constructors

JitEngine({EventSigner? eventSigner, required CacheManager cache, required List<String> ignoreRelays, required List<String> seedRelays, required GlobalState globalState})

Properties

cache CacheManager
getter/setter pair
eventSigner EventSigner?
getter/setter pair
globalState GlobalState
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreRelays List<String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seedRelays List<String>
getter/setter pair
seedRelaysConnected → dynamic
no setter

Methods

handleCloseSubscription(String id) → dynamic
handleEventPublish(Nip01Event nostrEvent) → dynamic
handleRequest(RequestState requestState) → void
If you request anything from the nostr network put it here and the relay jit manager will try to find the right relay and use it if no relay is found the request will be blasted to all connected relays (on start seed Relays)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMessage(Nip01Event event, RequestState requestState) → void
verify event and add to response stream
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addRelayActiveSubscription(RelayJit relay, RequestState requestState) → void
addRelayActiveSubscription to request
doesRelayCoverPubkey(RelayJit relay, String pubkey, ReadWriteMarker direction) → dynamic
onEoseReceivedFromRelay(RequestState requestState) → void