Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-11-28 16:43:20 -08:00
parent 5054fd19d3
commit 738659dfbc
5 changed files with 322 additions and 323 deletions

View File

@ -300,10 +300,10 @@ def test_ws():
# Connect to the websocket.
with modeling_commands_ws.WebSocket(
client=client,
fps=None,
unlocked_framerate=None,
video_res_height=None,
video_res_width=None,
fps=30,
unlocked_framerate=False,
video_res_height=360,
video_res_width=480,
webrtc=False,
) as websocket:
# Send a message.
@ -316,6 +316,5 @@ def test_ws():
# Get the messages.
while True:
message = websocket.recv()
print(json.dumps(message.to_dict()))
websocket.recv()
break