Global Feed Post Login
Replying to Avatar PABLOF7z

Announcing NDK 2.0:

🏡 Automatic connection to main user's relays -- no longer a task your app needs to perform

🤫 Automatic flagging of muted events / pubkeys

🪲 Many, many bugfixes and performance enhancements.

🤞 Better NIP-07 (e.g. getalby/nos2x) handling when NDK is called before they are ready to sign.

⚠️ Deprecation of user.hexpubkey in favor of user.pubkey

And from earlier today, NDK Svelte components:

🧵 Threading component to make rendering threads as good as it is on Twitter and work as any sensible person would expect.

From now on, all NDK packages will follow the same version number.

Avatar
<old>cypherhoodlum 2y ago

If ndk connects automatically to relays using the explicitRelayUrls, what is the best way to update the list of relay addresses? What I'm doing now is I run ndk.connect() every time the user makes changes to the explicitRelayUrls list.

Reply to this note

Please Login to reply.

Discussion

Avatar
PABLOF7z 2y ago

There's a ndk. Pool. AddRelay for this

Avatar
<old>cypherhoodlum 2y ago

Yeah I had a feeling that wasn't the proper way to do it, thanks.

Thread collapsed
Thread collapsed