nostr-dev-kit / ndk

Nostr Development Kit with outbox-model support
MIT License
352 stars 95 forks source link

The relay does not emit the disconnect event #270

Open cuervoshi opened 2 weeks ago

cuervoshi commented 2 weeks ago

The title explains it. I think the cause is here

https://github.com/nostr-dev-kit/ndk/blob/4bdda16d2a60b673ba9842b99e550df0ec64a790/ndk/src/relay/connectivity.ts#L181

The line is commented out. Why is that? Since I don't have this event, I need to take extra steps to detect if I need to reconnect.