Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I transfer bytes in chunks to clients?

SignalR loses many messages when I transfer chunks of bytes from client over server to client (or client to server; or server to client).

I read the file into a stream and sent it over a hub or persistent connection to other client. This runs very fast, but there are always messages dropped or lost.

How can I transfer large files (in chunks or not) from client to client without losing messages?

like image 257
Manuel Avatar asked Oct 10 '12 17:10

Manuel


1 Answers

As @dfowler points out, it's not the right technology for the job. What I would recommend doing is sending a message that there is a file to be downloaded that includes the link and then you can download that file using standard GET requests against either static files or some web service written with ASP.NET WebAPI.

like image 175
Drew Marsh Avatar answered Sep 20 '22 11:09

Drew Marsh