Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from quart import Quart, websocket
- app = Quart(__name__)
- @app.route('/')
- async def hello():
- return 'hello'
- @app.websocket('/ws')
- async def ws():
- while True:
- await websocket.send('hello')
- app.run()
- Bad Request
- Bad request syntax or unsupported method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement