bugfix
This commit is contained in:
parent
eaae1f2819
commit
ae6f811d31
@ -150,7 +150,9 @@ class WebsocketProcessor(PythonScriptProcessor):
|
|||||||
await ws.prepare(request)
|
await ws.prepare(request)
|
||||||
ws_pool = WsPool(ws, request.path, request.app)
|
ws_pool = WsPool(ws, request.path, request.app)
|
||||||
# await self.ws_send(ws, 'Welcome to websock')
|
# await self.ws_send(ws, 'Welcome to websock')
|
||||||
|
print(f'{request.path=}')
|
||||||
async for msg in ws:
|
async for msg in ws:
|
||||||
|
print(f'{msg=}')
|
||||||
if msg.type == aiohttp.WSMsgType.TEXT:
|
if msg.type == aiohttp.WSMsgType.TEXT:
|
||||||
if msg.data == 'exit':
|
if msg.data == 'exit':
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user