Small tweaks to subscriptions
This commit is contained in:
@@ -223,14 +223,9 @@ const _executeSubscription = (sub: Subscription) => {
|
||||
const executor = ctx.net.getExecutor(relays)
|
||||
const subs: {unsubscribe: () => void}[] = []
|
||||
const completedRelays = new Set()
|
||||
const events: TrustedEvent[] = []
|
||||
|
||||
// Hook up our events
|
||||
|
||||
emitter.on(SubscriptionEvent.Event, (url: string, event: TrustedEvent) => {
|
||||
events.push(event)
|
||||
})
|
||||
|
||||
emitter.on(SubscriptionEvent.Eose, (url: string) => {
|
||||
completedRelays.add(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user