-
Notifications
You must be signed in to change notification settings - Fork 55
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
Create WebPusher send_async #152
base: main
Are you sure you want to change the base?
Conversation
I'm curious why you closed this PR. It looks really useful. |
Hello @jrconlin
Opening the PR had initially been a mistake. My changes were initially intended for internal use. I implemented a Looking at #150 and #142, I assumed Going ahead to reopen now, incase it proves helpful in any way. |
I think it might! Heh, if there are improvements, don't be afraid to share them. Chances are good someone else might benefit as well. Thanks! |
This updates things to use more modern python practices. This includes: * Adding a pyproject.toml file * Add type hints **BREAKING CHANGE** `Webpusher.encode` will now return a `NoData` exception if no data is present to encode. Chances are you probably won't be impacted by this change since most push messages contain data, but one never knows. This alters the prior behavior where it would return `None`. Includes fixes from #152 by https://github.com/TobeTek (Thanks!)
* feat: Update for modern python This updates things to use more modern python practices. This includes: * Adding a pyproject.toml file * Add type hints **BREAKING CHANGE** `Webpusher.encode` will now return a `NoData` exception if no data is present to encode. Chances are you probably won't be impacted by this change since most push messages contain data, but one never knows. This alters the prior behavior where it would return `None`. Includes fixes from #152 by https://github.com/TobeTek (Thanks!)
No description provided.