mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
include eoseCb in sub
This commit is contained in:
2
relay.js
2
relay.js
@@ -164,7 +164,7 @@ export function relayConnect(url, onNotice = () => {}, onError = () => {}) {
|
|||||||
cb = activeCallback,
|
cb = activeCallback,
|
||||||
filter = activeFilters,
|
filter = activeFilters,
|
||||||
beforeSend = activeBeforeSend
|
beforeSend = activeBeforeSend
|
||||||
}) => sub({cb, filter, beforeSend, skipVerification}, channel),
|
}) => sub({cb, filter, beforeSend, skipVerification}, channel, eoseCb),
|
||||||
unsub: () => {
|
unsub: () => {
|
||||||
delete openSubs[channel]
|
delete openSubs[channel]
|
||||||
delete eventListeners[channel]
|
delete eventListeners[channel]
|
||||||
|
|||||||
Reference in New Issue
Block a user