This commit is contained in:
Waylon Walker 2023-06-14 13:43:06 -05:00
parent 892a3c9a8a
commit 3f28a10b16
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
5 changed files with 98 additions and 111 deletions

View file

@ -3,8 +3,10 @@ import time
from rich.console import Console
from websocket import create_connection
id = 1
url = f"ws://localhost:5000/ws/{id}"
from learn_sql_model.config import get_config
config = get_config()
url = f"ws://{config.api_client.url.replace('https://', '')}/ws/heros"
Console().log(f"connecting to: {url}")
ws = create_connection(url)