hzrd149's avatar
hzrd149
_@hzrd149.com
npub1ye5p...knpr
JavaScript developer working on some nostr stuff - noStrudel https://nostrudel.ninja - Blossom https://github.com/hzrd149/blossom - Applesauce https://hzrd149.github.io/applesauce
hzrd149's avatar
hzrd149 8 months ago
Setup a new relay wss://relay.nsite.lol that only accepts kind 34128 and NIP-65 events for nsites. it shouldn't have a publishing rate limit and its max request limit it set >1000 so that its easy to download all events for an nsite so if your deploying your app using nsyte, nsite-cli or any of the other tools at make sure to add it to the relay list also setup https://nsite.lol to use it as the first relay to check, so it should make things a little faster and more consistent cc. @sandwich @Alex Gleason
hzrd149's avatar
hzrd149 8 months ago
Just spent one hour debugging a very confusing issue with the replaceable event loading in applesauce. it was one of those bugs where different browsers where giving different results Turns out that FireFox does not implement setTimeout the same as chrome does. Chome seems to run the callbacks in the order of the timeout value. where as FireFox seems to run them in the order they where registered. that or it was running a setTimeout(() => {}, 0) after a setInterval Either way the solution was to remove the setTimeout. so just be careful when using timeouts in async code
hzrd149's avatar
hzrd149 8 months ago
Working on updating #noStrudel to use the latest applesauce version and I'm surprised that it feels a little snappier. maybe its all in my head or maybe all my work on a good nostr sdk paying off :)
โ†‘