From 39fb7ac79e4faef2322326d98f3019ac04229f05 Mon Sep 17 00:00:00 2001 From: wayonb Date: Wed, 13 Nov 2024 10:35:07 -0500 Subject: [PATCH] [tools/shoestring]: add support for websockets 14 problem: serve() moved to the asyncio.server solution: update import to use new path --- tools/shoestring/requirements.txt | 2 +- tools/shoestring/tests/healthagents/test_websockets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/shoestring/requirements.txt b/tools/shoestring/requirements.txt index f7bcb3ba2..524635171 100644 --- a/tools/shoestring/requirements.txt +++ b/tools/shoestring/requirements.txt @@ -5,5 +5,5 @@ PyYAML~=6.0.1 requests~=2.32.2 symbol-lightapi~=0.0.6 symbol-sdk-python~=3.2.2 -websockets~=13.0 +websockets~=14.0 zenlog~=1.1 diff --git a/tools/shoestring/tests/healthagents/test_websockets.py b/tools/shoestring/tests/healthagents/test_websockets.py index 169c2b291..46579898c 100644 --- a/tools/shoestring/tests/healthagents/test_websockets.py +++ b/tools/shoestring/tests/healthagents/test_websockets.py @@ -3,7 +3,7 @@ from collections import namedtuple from pathlib import Path -from websockets.server import serve +from websockets.asyncio.server import serve from shoestring.healthagents.websockets import should_run, validate from shoestring.internal.ConfigurationManager import ConfigurationManager