Damus broadcasts automatically with geometric backoff if it fails to write to the relay, you don’t need to do it manually. If clients don’t do this then notes are easily lost during connection issues
Login to reply
Replies (2)
this is what all proper network clients do... you can see examples of it in the bitcoin core and btcd p2p code as well
front end devs are not often so well versed in the problems of socket networking, being used to HTTP APIs... websocket libraries don't give you any tools for this either
yeah nostrudel and coracle have both had this since i first used the beginning of this year... the client should keep a queue and a checklist of which relays it has got to and some sort of scheme for backing off
one of the differences with web clients though is that queue is nixed when you refresh the page, and sometimes the page scripts are broken and make this refresh happen on clicks unintentionally