master
yumoqing 2024-04-28 12:06:02 +08:00
parent ae6f811d31
commit 6c5907663e
1 changed files with 4 additions and 2 deletions

View File

@ -146,11 +146,13 @@ class WebsocketProcessor(PythonScriptProcessor):
print(f'{request.path=}')
del lenv['request']
txt = await self.loadScript(self.real_path)
print(f'{request.path=}2')
ws = web.WebSocketResponse()
print(f'{request.path=}3')
await ws.prepare(request)
print(f'{request.path=}4')
ws_pool = WsPool(ws, request.path, request.app)
# await self.ws_send(ws, 'Welcome to websock')
print(f'{request.path=}')
print(f'{request.path=}5')
async for msg in ws:
print(f'{msg=}')
if msg.type == aiohttp.WSMsgType.TEXT: