vcs-python-repository/Client/4.py

15 lines
313 B
Python
Raw Normal View History

2024-03-25 16:25:08 -07:00
import asyncio
import websockets
socket_connections = {}
async def main():
async with websockets.connect("ws://10.0.0.29:8765") as websocket:
while 1:
await websocket.send("Hellow world")
print("sent")
await asyncio.sleep(0.5)
asyncio.run(main())