include eoseCb in sub

This commit is contained in:
monlovesmango
2022-11-21 16:09:23 -06:00
committed by GitHub
parent cdb07bb175
commit a1e1ce131a

View File

@@ -164,7 +164,7 @@ export function relayConnect(url, onNotice = () => {}, onError = () => {}) {
cb = activeCallback,
filter = activeFilters,
beforeSend = activeBeforeSend
}) => sub({cb, filter, beforeSend, skipVerification}, channel),
}) => sub({cb, filter, beforeSend, skipVerification}, channel, eoseCb),
unsub: () => {
delete openSubs[channel]
delete eventListeners[channel]