This commit is contained in:
Waylon Walker 2023-06-08 09:02:43 -05:00
parent a9ee4a2bd8
commit d68cda91cf
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
22 changed files with 824 additions and 55 deletions

14
client_sender.py Normal file
View file

@ -0,0 +1,14 @@
import time
from rich.console import Console
from websocket import create_connection
id = 1
url = f"ws://localhost:5000/ws/{id}"
Console().log(f"connecting to: {url}")
ws = create_connection(url)
data = []
while True:
ws.send("hello".encode())
time.sleep(1)