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.
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.