rikulo / socket.io-client-dart

socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
https://quire.io
MIT License
675 stars 184 forks source link

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

Open rochelryu opened 1 year ago

rochelryu commented 1 year ago

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.

4akloon commented 1 year ago

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