質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top