fiatjaf on Nostr: That doesn't justify making the protocol a much more complicated thing for everybody. ...
That doesn't justify making the protocol a much more complicated thing for everybody. WebSockets are simple, simpler than HTTP and REST, to be fully honest. If you don't like them that means you're just not used to them. You can use a Nostr library that abstracts that for you.
If you want a curl-like experience on the CLI, use
https://github.com/fiatjaf/nakPublished at
2023-07-25 09:40:10Event JSON
{
"id": "66a1bddfddd0b105a55b2e3b11d223a1a5bae7dddcfc242475cee382d738639f",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1690278010,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"c5fb6ecc876e0458e3eca9918e370cbcd376901c58460512fe537a46e58c38bb"
],
[
"p",
"4ea843d54a8fdab39aa45f61f19f3ff79cc19385370f6a272dda81fade0a052b"
],
[
"e",
"50673900ed3dba8cce7e9e04afa0ecac646b23dfa059553cbfd6f0491d68c22d",
"wss://nos.lol/",
"root"
],
[
"e",
"42880982977ec3d80ec135294085453cd9bb5e1efac3e81078aa9aa6b4dbe443",
"wss://nos.lol/",
"reply"
]
],
"content": "That doesn't justify making the protocol a much more complicated thing for everybody. WebSockets are simple, simpler than HTTP and REST, to be fully honest. If you don't like them that means you're just not used to them. You can use a Nostr library that abstracts that for you.\n\nIf you want a curl-like experience on the CLI, use https://github.com/fiatjaf/nak",
"sig": "43f20624894141da9160ecb93aa64ad6627de3dd5e7737a572d12c312e28385e6a61d543d00f88d090a30c4dcb98f597b8a2bee474fe04a9ada3dd57e07679b6"
}