def on_create(connection):
    def on_connect(session):
        session.on_join(on_join)
        session.join(u'public')

    # we attach our listener code on the connection. whenever there
    # is a session created which has joined, our callback code is run
    connection.on_connect(on_connect)
This is the main entry into user code. It _gets_ a connection
dataset/ETHPy150Open crossbario/autobahn-python/examples/twisted/wamp/work/newapi/test_newapi.py/on_create