lynn on Nostr: I find the websockets make development more difficult. I send an event and then have ...
I find the websockets make development more difficult. I send an event and then have to listen for a matching OK event? With a http request I send and get a response.
That isn't to say one couldn't make a relay with a HTTP api, however. At least primal.net dev is trying.
Published at
2023-04-18 10:35:27Event JSON
{
"id": "d533d407520797067303cc131e41c3b1ef7222cbec49d4bccdf98a8468bb4a17",
"pubkey": "166737b11822a0bf345e464c65f39d99f4fe606442b566fe7d0aad36b860d91f",
"created_at": 1681814127,
"kind": 1,
"tags": [
[
"e",
"53eb5d1ce61a35e5cf0afd99475dc3613047914380d1afa1a781e1982823a7a7",
"",
"root"
],
[
"e",
"f4d62d6e15bf41f9783f669290503c3dd6beb8a7b39d69010f8fd92b1d7396b0",
"",
"reply"
],
[
"p",
"8eee8f5a002e533e9f9ffef14c713da449c23f56f4415e7995552075a02d1d37"
],
[
"p",
"274611b4728b0c40be1cf180d8f3427d7d3eebc55645d869a002e8b657f8cd61"
]
],
"content": "I find the websockets make development more difficult. I send an event and then have to listen for a matching OK event? With a http request I send and get a response. \n\nThat isn't to say one couldn't make a relay with a HTTP api, however. At least primal.net dev is trying.\n",
"sig": "835c61f97c3135a50719133fb65c95aecb321237d28063535193eae451778535a0ae53fce4156c272dfe3d4e6f92f19d0c6d20729900fb9dc329d2f3d9fe7698"
}