Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from quart import Quart, websocket
  2.  
  3. app = Quart(__name__)
  4.  
  5. @app.route('/')
  6. async def hello():
  7. return 'hello'
  8.  
  9. @app.websocket('/ws')
  10. async def ws():
  11. while True:
  12. await websocket.send('hello')
  13.  
  14. app.run()
  15.  
  16. Bad Request
  17. Bad request syntax or unsupported method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement