Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top