Skip to content

Add a "streaming API" for incoming frames #296

@cjerdonek

Description

@cjerdonek

I'm wondering about the use case of transferring potentially large files over a websocket, where in the end the file would get written to the file system.

Currently, it seems the only way to do this with websockets's current API is to write a bunch of (large-ish) bytestrings to the file system (of size max_size) as they are read using recv(). I'm wondering if this approach seems perfectly fine, or if it would make sense for websockets to expose some kind of streaming API to bypass the creation of the intermediate bytestrings. This would be analogous to requests's "streaming" mode.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions