diff options
Diffstat (limited to 'src/nostr.js')
| -rw-r--r-- | src/nostr.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nostr.js b/src/nostr.js index 1a86499..0b902e1 100644 --- a/src/nostr.js +++ b/src/nostr.js @@ -27,9 +27,9 @@ const pool = new SimplePool(); // feature's configuration. NWC needs this: the relays it advertises in a // connection URI must be exactly the ones it listens on, or a client's // request lands somewhere the wallet isn't and it waits forever. -export function subscribeOn(relays, filter, onEvent) { +export function subscribeOn(relays, filter, onEvent, extra = {}) { try { - const sub = pool.subscribeMany(relays, [filter], { onevent: onEvent }); + const sub = pool.subscribeMany(relays, [filter], { onevent: onEvent, ...extra }); return () => { try { sub.close(); } catch {} }; } catch { return () => {}; } } |
