Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imperative client for autobahn WAMP server?

I'm using autobahn to run a websocket server to complement my Django app. Sometimes, I need to send messages from Django to the websocket server, which works fine using the websocket-client module. I would love to use the WAMP protocol instead because the RPC/PubSub API looks great, but the python client code is implemented as a twisted protocol, and I can't figure out how to use that imperatively, i.e. like a function call and not from some foreign event loop. Is there anything I'm not seeing in the docs, or should my architecture be different?

like image 667
Simon Avatar asked May 19 '13 11:05

Simon


1 Answers

https://github.com/itamarst/crochet might help you out with this.

like image 65
Jean-Paul Calderone Avatar answered Oct 24 '22 00:10

Jean-Paul Calderone