This is not a good practice. This can lead to blocking heartbeat messages between the client and server if the download process is long.
You can upload the file with the http message and send the download link to the chat. This establishes a new download connection and never terminates the socket.io session.
source
share