def go(loop): app = aioredux_frontend.make_app(static_path, loop=loop) srv = yield from loop.create_server(app.make_handler(), host, port) # setup (mock) shim handler_coro = create_mock_game() shim = yield from aioredux_shim.create_shim(handler_coro, loop=loop) return (srv, shim)
def go(loop): app = aioredux_frontend.make_app(static_path, loop=loop) srv = yield from loop.create_server(app.make_handler(), host, port) return srv