noisyboiler / wampy

Websocket RPC and Pub/Sub for Python applications and microservices
Mozilla Public License 2.0
127 stars 24 forks source link

Example for Subscribing to a Topic #11

Closed alexmbird closed 7 years ago

alexmbird commented 7 years ago

Hey there. I'm trying to add support to an existing (multithreaded) app for the Poloniex WAMP API. After a horrible day trying to butcher the Autobahn client into place I happened across Wampy. It looks like it could be a better fit for my (non-twisted, non-asyncio) needs but I'm struggling to get it up and running.

Could give a simple example of connecting to a WAMP service and subscribing to a topic?

nickpollari commented 7 years ago

I am also looking for an alternative to Autobahn for WAMP subscribing to topics. I think I am going to go with wampy. I'll be playing with the code looking for a way to make it work. If I find anything I will report back here, otherwise I will hope to see an update from @noisyboiler or yourself @alexmbird - Thanks

noisyboiler commented 7 years ago

hi @alexmbird sorry, i've only just seen your message. and @nickpollari thanks for your message too.

I'll update the README asap.

nickpollari commented 7 years ago

@noisyboiler Thanks for your help. I looked up @alexmbird link and it looks like he needs to connect to: wss://api.poloniex.com

if that is helpful in anyway for the example. My address is also wss.

Thanks again.

alexmbird commented 7 years ago

@noisyboiler smashing, much appreciated. It will be nice to use something a little more compatible with threading.

noisyboiler commented 7 years ago

Thank you both for your comments - they are really appreciated.

I wrote wampy because i was not able to get hold of a simple WAMP client and it looks like you both share my frustrations. Autobahn is a monster and all i wanted was a simple WAMP client to send messages.

The wampy README now does show the subscriber pattern with wampy. Do ask if you have any other questions.

@nickpollari i had not considered TLS until your comment. I've now begun to think about TLS. And released 0.7.7.x.

@alexmbird I'd love to provide an example to help you, but i need a little more context.

both - let me know how i can further improve the README. and this is still a young project so please report any bugs as well.

Many thanks!