def get_router(handler, settings=None, resource='socket.io/*',
               io_loop=None, extra_re=None, extra_sep=None):
    router = type('SocketRouter', (SocketRouterBase,), {})
    router.tornadio_initialize(handler, settings, resource,
                               io_loop, extra_re, extra_sep)
    return router
Create new router class with desired properties.
dataset/ETHPy150Open mrjoes/tornadio/tornadio/router.py/get_router