Pysher
Pysher copied to clipboard
Async pysher
Can you provide an example on how to use this library asynchronously.?
Using asyncio
? Unfortunately no - but perhaps someone else is willing to contribute such an example. Should I find the time for this, I'll add an example in the coming days.
Yes using asyncio. Okay thanks.
+1 I would like to connect to a Pusher stream within an asyncio based application as well. The benchmarks I have seen online generally show better websocket performance with asyncio than threads.
Has any progress been made yet? If not I can take a look tomorrow at rewriting Pysher with aiohttp as a basis instead of websocket-client.
Commit 428a93a93aabe02579dbadbcd192ce253c906da9 added a crude first draft for asyncio support. I'm still playing around with the library, and have yet to fully get a grasp of it.
Have a loot at it anyway.
Now don't have async pysher example?
Why the commit is not on the official version?
Because it's not production ready. It was a draft to see if I could get it working. Unfortunately I did not and Still do not have time to properly implement it.