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

Create WebPusher send_async #152

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

TobeTek
Copy link

@TobeTek TobeTek commented Jan 23, 2023

No description provided.

@TobeTek TobeTek closed this Jan 23, 2023
@jrconlin
Copy link
Member

I'm curious why you closed this PR. It looks really useful.

@TobeTek TobeTek reopened this Jan 24, 2023
@TobeTek
Copy link
Author

TobeTek commented Jan 24, 2023

Hello @jrconlin

I'm curious why you closed this PR. It looks really useful.

Opening the PR had initially been a mistake. My changes were initially intended for internal use. I implemented a send_async method for the WebPusher class.

Looking at #150 and #142, I assumed send_async wasn't on the roadmap.

Going ahead to reopen now, incase it proves helpful in any way.

@jrconlin
Copy link
Member

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!

jrconlin added a commit that referenced this pull request Dec 28, 2023
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!)
jrconlin added a commit that referenced this pull request Mar 4, 2024
* 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!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants