Upload file from android to server using socket.io nodejs

I have included socket.io in my Android app to make a chat application. Now I want to upload and share files, such as images, mp3 or doc files, etc. How to download a file using socket.io I cannot find the documentation to execute.

+4
source share
1 answer

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.

+2
source

All Articles