-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Should WebSocketConnection
be an asynchronous iterator?
#29
Comments
Note: Aaugustin's Websockets has async iterable connection objects: https://websockets.readthedocs.io/en/stable/api.html#module-websockets.protocol
|
Raising only on connection error sounds good |
Yes I think it's nice idea, websockets impl is here, very simple ? Also it seems aaugustin is moving his implementation to have a sans-io base, just for FYI |
Oh cool, I like aaugustin’s library, nice to hear that it is adopting sans io. This library here is not maintained anymore (I’ve changed jobs twice since I wrote it) so it would be great to have an async library with an active maintainer. |
The connection object could be an iterator that yields incoming messages, i.e. as an alternative to calling
get_message()
.Thoughts?
The text was updated successfully, but these errors were encountered: