You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the relay reconnects, should the subscription relay.subscribe(this, this.filters) be executed again?
` this.poolMonitor = (relay: NDKRelay) => {
// check if the pool monitor is already in the relayFilters
if (this.relayFilters?.has(relay.url)) return;
const calc = calculateRelaySetsFromFilters(this.ndk, this.filters, this.pool);
// check if the new relay is included
if (calc.get(relay.url)) {
// add it to the relayFilters
this.relayFilters?.set(relay.url, this.filters);
// d("New relay connected -- adding to subscription", relay.url);
relay.subscribe(this, this.filters);
}
};`
Will it return directly if (this.relayFilters?.has(relay.url))?
The text was updated successfully, but these errors were encountered:
If the relay reconnects, should the subscription relay.subscribe(this, this.filters) be executed again?
` this.poolMonitor = (relay: NDKRelay) => {
// check if the pool monitor is already in the relayFilters
if (this.relayFilters?.has(relay.url)) return;
Will it return directly if (this.relayFilters?.has(relay.url))?
The text was updated successfully, but these errors were encountered: