|
|
@ -50,7 +50,7 @@ const subscribe = (
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (unsub) {
|
|
|
|
if (unsub) {
|
|
|
|
sub.on('eose', () => {
|
|
|
|
sub.on('eose', () => {
|
|
|
|
console.log('eose', relay.url);
|
|
|
|
// console.log('eose', relay.url);
|
|
|
|
unsubscribe(sub);
|
|
|
|
unsubscribe(sub);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -69,7 +69,7 @@ export const subOnce = (
|
|
|
|
if (relay) {
|
|
|
|
if (relay) {
|
|
|
|
const sub = subscribe(obj.cb, obj.filter, relay);
|
|
|
|
const sub = subscribe(obj.cb, obj.filter, relay);
|
|
|
|
sub.on('eose', () => {
|
|
|
|
sub.on('eose', () => {
|
|
|
|
console.log('eose', obj.relay);
|
|
|
|
// console.log('eose', obj.relay);
|
|
|
|
unsubscribe(sub);
|
|
|
|
unsubscribe(sub);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|