From 6c5907663eebe73fc8f77af8e73a415589944857 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 28 Apr 2024 12:06:02 +0800 Subject: [PATCH] bugfix --- ahserver/websocketProcessor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ahserver/websocketProcessor.py b/ahserver/websocketProcessor.py index 02f8ce7..e5b9c4e 100755 --- a/ahserver/websocketProcessor.py +++ b/ahserver/websocketProcessor.py @@ -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: