I'm writing a program that consists of two Node servers (well, one of them's an Electron application) that are connected with Socket.io, and i'm looking for a way to send a large file (up to 10gb) from the socket server to the socket client over the socket connection. It must be over the socket connection because the client (the Electron application) cannot be at a guaranteed IP address, and therefore cannot be contacted independently.
The problem is that all of the frameworks I can find for sending large files over Socket connections are designed for sending files from the client to the server, not the other way around.
Does anyone have any ideas on how I could do this? Are there any frameworks that can break files into chunks as to not overload memory AND is able to send files from the server to the client? If not, what will making one entail?
Thanks.