<gh_stars>1-10

import aiohttp.web as web
import asyncio
import vuespa

class Client(vuespa.Client):
    async def vuespa_on_open(self):
        print("Client connected!")
    async def api_shoe(self, arg1):
        return f'Got {arg1}'

    async def api_delay(self, delay):
        await asyncio.sleep(delay)
        return 'Done'

    async def api_huge(self):
        return 'a' * (1024 * 1024 * 600)


async def handle_hello(req):
    return web.Response(body='Hello, world')
def config_web(app):
    app.router.add_get('/hello', handle_hello)
vuespa.VueSpa('1_basic_app_vue', Client, config_web_callback=config_web).run()

