Aspie96 on Nostr: 58 times 20 is 1160, not 116. Also, I don't see why you'd have a separate socket to ...
58 times 20 is 1160, not 116.
Also, I don't see why you'd have a separate socket to each server for every client.
Just keep one socket for each one server and stream all data trough that one socket.
You can easily know the correct client of each response by checking the subscription ID.
If you're afraid of colliding subscription ID, just add a client-unique suffix to it, which you can then remove before streaming the response back to the client.
Published at
2024-04-18 18:04:58Event JSON
{
"id": "a6c0f19708ff5b82e869662063d33fb29cc06049430adbcb9c4c0b980fa2376f",
"pubkey": "8ee4290c98b20b2999138b322f466ea20c75608f568ab53cf11492bf9b2e849c",
"created_at": 1713463498,
"kind": 1,
"tags": [
[
"e",
"ccbbf34f277a94ea2080e44b1602c2f882e84d1235f81b3da374e75b6b259e76",
"",
"root"
],
[
"e",
"88df594dadf2073bae2f215a5cb6bc847f589bec8b5fd235791dba7bfa567362",
"wss://nostr.roundrockbitcoiners.com/",
"reply"
],
[
"p",
"347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c",
"",
"mention"
]
],
"content": "58 times 20 is 1160, not 116.\n\nAlso, I don't see why you'd have a separate socket to each server for every client.\n\nJust keep one socket for each one server and stream all data trough that one socket.\nYou can easily know the correct client of each response by checking the subscription ID.\nIf you're afraid of colliding subscription ID, just add a client-unique suffix to it, which you can then remove before streaming the response back to the client.",
"sig": "4ab0dd9f92c2b8b98de1cd13d2daeaad59543dd335e9e9d7aeee34f9de11e0ea91927bf9698af25c905541bfc98e9e727150f098b116a5dbb3a2f37a830e6867"
}