.. | ||
asyncio | ||
router | ||
twisted | ||
asciinema-autobahn-demo.py | ||
index.html | ||
Makefile | ||
README.md | ||
run-all-examples.py | ||
running-the-examples.md |
Autobahn|Python Examples
This folder contains complete working code examples that demonstrate various features of Autobahn|Python:
- Twisted-based Examples
If you are new to Autobahn and WAMP, you should start with the following if you're going to use Twisted:
- twisted/wamp/pubsub/basic/
- twisted/wamp/rpc/arguments/
...whereas if you prefer asyncio:
- asyncio/wamp/pubsub/basic/
- asyncio/wamp/rpc/arguments/
Note that many of the examples use the same URIs for topics or RPC endpoints, so you can mix and match which backend
or frontend
script (whether Python or JavaScript) you use. For example, a Web browser tab could load a backend.html
page that does publishes while you run a Python frontend.py
that subscribes to those topics.