cashubtc / cashu.me

Cashu wallet PWA
https://cashu.me
103 stars 42 forks source link

NWC: keep checking for intact connection and reconnect if not #136

Open callebtc opened 5 months ago

callebtc commented 5 months ago

Needs a worker that keeps checking the connection (except if NWC has some kind of auto reconnect).

cjbeery24 commented 5 months ago

@callebtc Pretty sure there is already reconnect logic built into NWC. See the relay connectivity here: https://github.com/nostr-dev-kit/ndk/blob/6db7f705c87d2f3b62cdffcf6ff209f892818fcc/ndk/src/relay/connectivity.ts#L93