Semisol on Nostr: spec is very simple disable buffering on your proxy Content-Type: text/event-stream ...
spec is very simple
disable buffering on your proxy
Content-Type: text/event-stream
each line has a prefix + data (followed by a newline), like so:
prefix: data 1
prefix2: data 2
two newlines = end of message
types:
- event: once per message, defines event type
- id: event ID to be given to consumer
- data: data for event, multiple data lines can exist (they are joined by newline)
- retry: send by itself with nothing else, number in milliseconds to try to reconnect after connection loss
Published at
2025-02-24 18:40:23Event JSON
{
"id": "fd90ced8c9d1d0caca3e8d0664f2ffaa2d124dddc42d85ed2fa67a7d639b05b4",
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"created_at": 1740422423,
"kind": 1,
"tags": [
[
"e",
"5182f9fa5016c4d7e60106d1c71e2e61280297099ba646b45e0e491a487b01d4",
"",
"root"
],
[
"e",
"e5d785c726afd4b539df62dc079fa0d4efe320a4f70c193040d78212be741685",
"",
"reply"
],
[
"p",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
]
],
"content": "spec is very simple\n\ndisable buffering on your proxy\nContent-Type: text/event-stream\n\neach line has a prefix + data (followed by a newline), like so:\n\nprefix: data 1\nprefix2: data 2\n\ntwo newlines = end of message\n\ntypes:\n- event: once per message, defines event type\n- id: event ID to be given to consumer\n- data: data for event, multiple data lines can exist (they are joined by newline)\n- retry: send by itself with nothing else, number in milliseconds to try to reconnect after connection loss",
"sig": "0b4ba843a546c80ab40b2a00778474ed4773b1a70a3b8f47e0363fe1308cb9ae494f79051752ec5e15d236a0ae3431cf8556536b1a540966f4e4c3371089d6ef"
}