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

Is it possible to get the progress of uploaded data?

Open Dalinar651 opened this issue 4 years ago • 1 comments

I am uploading a big file to aws s3 storage using sockets. In the meantime i want the user to show a progress bar of the uploaded data .

This is the code i am using. var file=File().openRead(); file.listen((bytes){ socket.emitWithAck('upload-to-s3',bytes,ack:(data){ },binary:true); });

Dalinar651 avatar Mar 11 '22 13:03 Dalinar651

Yes, you can use ack to simulate the progress when the callback of the ack is invoked.

jumperchen avatar Apr 18 '22 02:04 jumperchen