wip
This commit is contained in:
parent
a9ee4a2bd8
commit
d68cda91cf
22 changed files with 824 additions and 55 deletions
14
client_sender.py
Normal file
14
client_sender.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue