fix: websocket issue

websocket.create_connection is short lived, so whenever the inference
server is needed, it needs to be called again to reconnect to the
server.
This commit is contained in:
2024-07-23 21:43:35 +01:00
parent 63a8056283
commit a6d6487df3
2 changed files with 13 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ async def handler(websocket):
async def main():
async with serve(handler, "", 8001):
async with serve(handler, "localhost", 8001, ping_interval=5):
await asyncio.Future()