Pysher icon indicating copy to clipboard operation
Pysher copied to clipboard

Async pysher

Open peerchemist opened this issue 7 years ago • 7 comments

Can you provide an example on how to use this library asynchronously.?

peerchemist avatar Feb 04 '18 15:02 peerchemist

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.

deepbrook avatar Feb 06 '18 14:02 deepbrook

Yes using asyncio. Okay thanks.

peerchemist avatar Feb 06 '18 15:02 peerchemist

+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.

curtailment avatar Apr 25 '18 17:04 curtailment

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.

deepbrook avatar Aug 31 '18 19:08 deepbrook

Now don't have async pysher example?

wmltyq avatar Jan 23 '19 03:01 wmltyq

Why the commit is not on the official version?

Jaquedeveloper avatar Aug 11 '20 00:08 Jaquedeveloper

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.

deepbrook avatar Aug 11 '20 04:08 deepbrook