Alex Gleason on Nostr: To broadcast a websocket event to everyone, you need to store every websocket ...
To broadcast a websocket event to everyone, you need to store every websocket connection in a list and then loop over them. Is that right? Seems legit I’m just a bit surprised.
Published at
2023-03-27 22:47:44Event JSON
{
"id": "21f3b05f43ad24c4e028a1dca24a55627975631d786bcfa857ceebc88761806f",
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1679957264,
"kind": 1,
"tags": [
[
"mostr",
"https://gleasonator.com/objects/b812d40a-b072-4566-a2b5-84aed9552232"
]
],
"content": "To broadcast a websocket event to everyone, you need to store every websocket connection in a list and then loop over them. Is that right? Seems legit I’m just a bit surprised.",
"sig": "a6722dc44177ebf74db1f1d1df8601dc8363880565810d4c3ac1d072e29b2764dda4a7714797b94476db34cc3221b0d30a545d527e67f6081fc52c5874cf4726"
}