-
Notifications
You must be signed in to change notification settings - Fork 761
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
Better API for WebSocketApp class #349
Comments
Why is it not possible? I have also tried this. It seems like the intuitive way to do it. |
Confirm that this example didn't working. |
I'm going to close this old issue for now because the attempted solution of PR #442 caused various issues and ended up being reverted. If someone would like to provide a PR that enables such functionality, I would be happy to review. Otherwise, while the current library design might not be for everyone, it has been working well. I would like to avoid large codebase modifications for the time being unless this can be done with fewer codebase edits than I am imagining. If there are aspects of this topic that I may have overlooked, you can reopen the issue. |
I found it's pretty wired to write a ws app like: https://github.com/websocket-client/websocket-client/blob/master/examples/echoapp_client.py . Personally I'd prefer to use an API like this(AS-IS code):
Unfortunately, it's not possible to extend the
websocket.WebSocketApp
class like what I've written above. Please consider re-design the API, which should lead to an incompatible version bump.The text was updated successfully, but these errors were encountered: