franzap on Nostr: Not sure about this one. JSON has a lot of advantages, size is negligible compared to ...
Not sure about this one. JSON has a lot of advantages, size is negligible compared to media files people transfer all the time.
What relays should provide, next to websockets is a plain HTTP API.
This lowers the bar even more for new nostr developers and makes things easier for prototype and lots of no-realtime apps (not having to handle closing sockets, reconnection logic, etc).
You can have both served in the same path on the same process. Imo this should've been part of the spec, it might be too late
Relays should provide both JSON and Binary options.
JSON only is extremely wasteful for bandwidth constraint clients.
You won't change my mind.
Published at
2024-10-05 16:33:52Event JSON
{
"id": "2a0d8e2b511aa10fbcb22b95d866d723912304d1fa5eb8600c308cb6e83baf32",
"pubkey": "726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"created_at": 1728146032,
"kind": 1,
"tags": [
[
"e",
"aa9ccc0484ff5e2657e19a67d93de461a8625e396c9f83438e46f278fdb9b123",
"",
"mention"
]
],
"content": "Not sure about this one. JSON has a lot of advantages, size is negligible compared to media files people transfer all the time.\n\nWhat relays should provide, next to websockets is a plain HTTP API.\n\nThis lowers the bar even more for new nostr developers and makes things easier for prototype and lots of no-realtime apps (not having to handle closing sockets, reconnection logic, etc).\n\nYou can have both served in the same path on the same process. Imo this should've been part of the spec, it might be too late\n\nnostr:note142wvcpyyla0zv4lpnfnaj00yvx5xyh3edj0cxsuwgme83ldeky3sfvva7r",
"sig": "e57011ce2b8a7f777140cdf49d75f77cd5c651ff8b2c79801a82244b72cc1e023b6568c5a90ce25ad7a6d7de441745cd6d85388615f38a8b6ab0ae254a608aa0"
}