This example demonstrates combining a Flask Web application with Autobahn WAMP code using Crochet.
Install dependencies:
pip install flask autobahn[twisted] crochet
Start the server:
python server.py
Now open the WAMP Web client test_web.html
in your browser to test the (indirect) Web path to square
and slowsquare
, and test_wamp.html
to test the (direct) WAMP path to those functions.