Semisol 👨💻 on Nostr: I might write my own handler which would be best. Is there any way I can improve this ...
I might write my own handler which would be best.
Is there any way I can improve this design?
- A RelayConnection GenServer that is basically an interface to the actual WS connection
- WebSocket connection
- A GenServer for each subscription
Published at
2023-03-05 23:45:18Event JSON
{
"id": "cd2c63128f82232afaa9829ef4385839484d54bcfc8a64e5c9f09453416fe5ec",
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"created_at": 1678059918,
"kind": 1,
"tags": [
[
"e",
"9ba62f559a54ed5d8044336f70bbf9528f86315b032f9e1bc0ce67e559e8aa92",
"",
"root"
],
[
"e",
"6a34fedfb073b56b940fea4807e19960879f72aa1185eb8da0bbad09f6077d4c",
"",
"reply"
],
[
"p",
"9e87fe21542cef6b1076334f5e01f614cbc5bea223187b078deb47c2f72205b6"
],
[
"p",
"9e87fe21542cef6b1076334f5e01f614cbc5bea223187b078deb47c2f72205b6"
]
],
"content": "I might write my own handler which would be best.\n\nIs there any way I can improve this design?\n- A RelayConnection GenServer that is basically an interface to the actual WS connection\n- WebSocket connection\n- A GenServer for each subscription",
"sig": "1cf4561ea9ae211ce626dd86fca7138c1536e79b6ffb611c3befc3102e21e2b32ab3028a1abeb07a4a709e778692227e0e2af95374c8705438ddb976c4479a81"
}