Skip to content

Is it possible to stream files to clients without causing a client-sided block? #670

Closed

Description

@julianbibo

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 found an implementation of socket.io-stream here, also wondering if there is a Python implementation of this: https://stackoverflow.com/a/40391620/13216113

Love your work Miguel!

Activity

  1. miguelgrinberg commented on Apr 11, 2021

    @miguelgrinberg
    Owner

    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.

  2. julianbibo commented on Apr 12, 2021

    @julianbibo
    Author

    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?

  3. miguelgrinberg commented on Apr 12, 2021

    @miguelgrinberg
    Owner

    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.

  4. julianbibo commented on Apr 12, 2021

    @julianbibo
    Author

    Alright thanks! I'll look into it

  5. Repository owner locked and limited conversation to collaborators on Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions