This ensures we use IPv4 addresses; at least with Trollius on Python 2.7 "localhost" can result in IPv6 addresses but the examples are all currently written for IPv4
Hello WAMP
This example demonstrates the use of wamp.Application objects, an alternative WAMP API to ApplicationSession.
Application objects provide a Flask-esque API to WAMP. You create an application object and then can e.g. register procedures using decorators:
app = Application()
@app.register('com.example.add2')
def add2(a, b):
return a + b
Running the Example
Start the app component for development in a standalone router embedding the component:
python hello.py
Open hello.html in your browser.