Skip to content

Commit

Permalink
Add subscription id to relay.subscribe().
Browse files Browse the repository at this point in the history
fix #439
  • Loading branch information
chmac authored and fiatjaf committed Oct 17, 2024
1 parent e398617 commit 0b5b357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abstract-relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class AbstractRelay {
return ret
}

public subscribe(filters: Filter[], params: Partial<SubscriptionParams>): Subscription {
public subscribe(filters: Filter[], params: Partial<SubscriptionParams> & { id?: string }): Subscription {
const subscription = this.prepareSubscription(filters, params)
subscription.fire()
return subscription
Expand Down

0 comments on commit 0b5b357

Please sign in to comment.