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?
https://github.com/itamarst/crochet might help you out with this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With