What is Nostr?
Aspie96 / Valentino Giudice
npub13mj…8hs2
2024-04-18 18:04:58
in reply to nevent1q…vr9h

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.
Author Public Key
npub13mjzjryckg9jnxgn3vez73nw5gx82cy0269t2083zjftlxewsjwqny8hs2