You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to stream files to clients without causing a client-sided block? #670
I'm trying to send medium-sized audio files over socketio, except the JS client hangs while it is receiving the emitted data, and no other packets can be received during that time. Is it possible to stream files to clients without causing the client's socketio.on(..) handler to block everything?
I don't know the specific workings of python-socketio, but does it support streaming at all? Say, if the JS client can support streams (socket.io-stream), can it receive "normal" non-stream emits from the python-socketio server?
The Socket.IO protocol doesn't have anything called "streaming". I think you are looking at an extension built by a 3rd party that works on top of the standard Socket.IO packet exchange mechanisms.
Activity
miguelgrinberg commentedon Apr 11, 2021
Isn't this a question that needs to be asked to the maintainers of the JS client? I can't really answer for a problem in the JS client.
julianbibo commentedon Apr 12, 2021
I don't know the specific workings of python-socketio, but does it support streaming at all? Say, if the JS client can support streams (socket.io-stream), can it receive "normal" non-stream emits from the python-socketio server?
miguelgrinberg commentedon Apr 12, 2021
The Socket.IO protocol doesn't have anything called "streaming". I think you are looking at an extension built by a 3rd party that works on top of the standard Socket.IO packet exchange mechanisms.
julianbibo commentedon Apr 12, 2021
Alright thanks! I'll look into it