mleku on Nostr: that's why i'm making the HTP API it is far simpler to specify them, it's actually ...
that's why i'm making the HTP API
it is far simpler to specify them, it's actually basically declarative code
not allowing more than one base type for messages is retarded, as is not cleanly separating request and response types, as is using a bidirectional socket for what is essentially a client-server interaction, and the role should not be coded implicit to the sender or it adds an extra layer of complexity to the codec (this is a bad violation of DDD)
Published at
2025-04-13 11:55:55Event JSON
{
"id": "0b9d7579f3c106c948e60ff95da0a3ec9bef913e5791b023b9aee34f2e5612c4",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1744545355,
"kind": 1,
"tags": [
[
"e",
"604e76ad049b9ff9321bd22deb83b839f33befd8f467709bc0e647a4fad18701",
"wss://theforest.nostr1.com/",
"root",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"e",
"cd2d0ba05e67e18edbc3eee7b8ac88011568a6b954af186e6da744cc3a4d6847",
"wss://theforest.nostr1.com/",
"reply",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"p",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"client",
"jumble"
]
],
"content": "that's why i'm making the HTP API\n\nit is far simpler to specify them, it's actually basically declarative code\n\nnot allowing more than one base type for messages is retarded, as is not cleanly separating request and response types, as is using a bidirectional socket for what is essentially a client-server interaction, and the role should not be coded implicit to the sender or it adds an extra layer of complexity to the codec (this is a bad violation of DDD)",
"sig": "749b087afa6c6f259c4dae075d08cda35091f2ae21c7f89133b80b6a6fa6f0c48a3eb788c2cf2ba58446719578749580c2aef69002997a0974da370393c0a98b"
}