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
-
closeSubscription(
String id) → Future< void> -
close a relay subscription, the relay connection will be kept open and closed automatically (garbage collected)
override
-
handleEventBroadcast(
{required Nip01Event nostrEvent, required EventSigner mySigner, Iterable< String> ? specificRelays}) → NdkBroadcastResponse -
broadcasts given event using inbox/outbox (gossip) if explicit relays are given they are used instead
nostrEvent
event to publishexplicitRelays
used instead of gossip if setoverride -
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 - 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