-
Notifications
You must be signed in to change notification settings - Fork 51
Cancelling a subscription #10
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
Comments
Meanwhile I'll follow the suggestion to have a publish/subscribe proxy. |
Hello @robiwano |
Unfortunately not. |
adding this function to the socket and then calling it from Avanza class with a wrapper method should do the trick:
I haven't tested this yet but that is how fhqvist is doing it in his javascript wrapper. |
I'm not all that up to speed with async in Python and I haven't had time to really test it but I've created a draft with the functionality added if any of you could try it out and reiterate upon it if needed. |
It seems it's not possible to cancel a avanza.subscription_id. The following code shows this. Idea is that task is created with ensure_future, and then cancelled after ten seconds. The subscription data continues to pour in after this.
The text was updated successfully, but these errors were encountered: