Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reading and writing streaming frames websockets #7787

Open
1 task done
shaohme opened this issue Nov 3, 2023 · 0 comments
Open
1 task done

Support for reading and writing streaming frames websockets #7787

shaohme opened this issue Nov 3, 2023 · 0 comments

Comments

@shaohme
Copy link

shaohme commented Nov 3, 2023

Is your feature request related to a problem?

I sometimes need to read/write a large incoming binary websocket stream of frames before its finished (FIN) frame arrives, so that it does not need to buffer everything before handing my application an assembled binary websocket message. I accept, of course, that the transport could be interrupted at any time.

Describe the solution you'd like

aiohttp already implements https://docs.aiohttp.org/en/stable/streams.html and a similar API could be nice to have for its websocket-request/response implementation.

Describe alternatives you've considered

python-websockets https://websockets.readthedocs.io/en/stable/ already have this, but only limited to its Sans writer, and in its 'threading/sync' API.

Related component

Server, Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant