From cfce83bb8492abfb608ab47c1c6815031f53c765 Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Tue, 25 Apr 2023 12:31:12 +0100 Subject: testing --- unfinished/gptbz/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'unfinished/gptbz/__init__.py') diff --git a/unfinished/gptbz/__init__.py b/unfinished/gptbz/__init__.py index 6762b4ab..ba326cf6 100644 --- a/unfinished/gptbz/__init__.py +++ b/unfinished/gptbz/__init__.py @@ -1,6 +1,4 @@ -import asyncio import websockets - from json import dumps, loads async def test(): @@ -20,6 +18,8 @@ async def test(): try: response = await wss.recv() json_response = loads(response) + print(json_response) + ended = json_response.get('eof') if not ended: @@ -28,4 +28,3 @@ async def test(): except websockets.ConnectionClosed: break -asyncio.run(test()) \ No newline at end of file -- cgit v1.2.3