socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

socket_io_client disconnect when i send file small file to my server Node

Open rochelryu opened this issue 3 years ago • 1 comments

After updating socket_io_client to 2.0.0, I can't send a file in my chat via socket to my server. When I send a text message or a file of less than 500kb it's fine but as soon as my file is close to 1Mb, my socket disconnects and I don't even receive a listening of the event on my server:

Configuration: socket_io_client: ^2.0.0 Flutter (Channel stable, 3.3.7, on macOS 12.6.1 21G217 darwin-x64, locale en-CI) "@nestjs/websockets: "^9.2.0", Server: Nginx

Information: When I send multiple files via REST API to my server, all of them are loaded without problems.

rochelryu avatar Nov 09 '22 09:11 rochelryu

I need to increase the buffer on the server, it helped me https://stackoverflow.com/questions/66947427/socket-io-transport-close-when-sending-a-base64-image

4akloon avatar Oct 16 '23 12:10 4akloon