AFK-AlignedFamKernel / AFK-AlignedFamKernel/afk_monorepo

Fetch events with subscription and check relay

Offen
#371 34 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
frontend good first issue help wanted mobile
Vorherrschende Sprache
TypeScript
Sterne
18
Forks
57
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# Description

We when fetchEvent with ndk.fetchEvents, if a relay are not unreachable, it's throw an error and return an empty array.
Create a robust subscription/fetch that's return datas of the reachable relay Nostr, check the nostr-dev-kit

Do this hooks in: packages/afk_nostr_sdk.

Try different more robust implementations that's not throw an error if one of the relay have an issue:

- [ ] ndk.subscribe(), check if relay
- [ ] a hooks that's check if relay is ok before fetch

- [ ] Try to add this Relay with error in the relay.ts:

'wss://relay.nostr.band',
'wss://purplepag.es',
'wss://relay.snort.social',
'wss://nos.lol'

- [ ] Create a robust hooks with ndk.subscribe, that fetchEvent and not throw error if relay is unreachable
- [ ] Create a store data with zutsand for Notes subscription, so we can render it like a webhook in the UI

Few relays to test, check if one is not working also try with RELAYS undefined or incorrect:

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.