Optional
cacheOptional
closeOptional
groupableGroupable subscriptions are created with a slight time delayed to allow similar filters to be grouped together.
Optional
groupableThe delay to use when grouping subscriptions, specified in milliseconds.
Optional
groupableSpecifies how this delay should be interpreted. "at-least" means "wait at least this long before sending the subscription" "at-most" means "wait at most this long before sending the subscription"
const sub1 = ndk.subscribe({ kinds: [1], authors: ["alice"] }, { groupableDelay: 100, groupableDelayType: "at-least" });
const sub2 = ndk.subscribe({ kinds: [0], authors: ["alice"] }, { groupableDelay: 1000, groupableDelayType: "at-most" });
// sub1 and sub2 will be grouped together and executed 1000ms after sub1 was created
Optional
poolPool to use
Optional
skipSkip emitting on events before they are received from a relay. (skip optimistic publish)
Optional
skipSkip event validation
Optional
skipSkip signature verification
Optional
subThe subscription ID to use for the subscription.
Whether to close the subscription when all relays have reached the end of the event stream.