61898fa
1
2
3
4
5
6
7
8
9
10
11
12
13
from quart import Quart, websocket app = Quart(__name__) @app.websocket('/ws/test') async def ws_test(): print("ENTER_HANDLER") await websocket.accept() await websocket.send('ok') if __name__ == '__main__': app.run()