Jay on Nostr: At least in one case where I've made a client server app, it was easier for me to ...
At least in one case where I've made a client server app, it was easier for me to open a websocket and use the webserver as a place to run functions and return ok/err. I found it much easier to work with than requests to endpoints.
I rolled my own message format, but JSON-RPC would have done well too.
Published at
2025-04-24 12:37:43Event JSON
{
"id": "efa1e783143a47112b857dd9175f1f2c267a5a06bf700221ed1a61384c6954a7",
"pubkey": "7ed7d5c3abf06fa1c00f71f879856769f46ac92354c129b3ed5562506927e200",
"created_at": 1745498263,
"kind": 1,
"tags": [
[
"e",
"101c25f684bc368fda0b96d860b9f12c438e4778d3cc6168a1127cb3c39586fc",
"",
"root"
],
[
"e",
"389478a6ce062acede1de9af430623621174d341a2fd327cd304bb48d6f02a7e",
"",
"reply"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"p",
"16f1a0100d4cfffbcc4230e8e0e4290cc5849c1adc64d6653fda07c031b1074b"
]
],
"content": "At least in one case where I've made a client server app, it was easier for me to open a websocket and use the webserver as a place to run functions and return ok/err. I found it much easier to work with than requests to endpoints.\n\nI rolled my own message format, but JSON-RPC would have done well too.",
"sig": "8cf92e3a08d43fd90f47d7f27edcba8358ae30bcfabd66c72a176ef56f99fcdf1349a9a1901fe53b68f7bfa8dfa63eea7d2aac3b2e0c77a121bd40c01cfc0000"
}