start a nicegui implementation

This commit is contained in:
Ross
2024-11-26 22:59:32 +00:00
parent 30f8d040c8
commit 242237a0b2
5 changed files with 636 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
import asyncio
import random
import zmq
import zmq.asyncio
context = zmq.asyncio.Context()
socket = context.socket(zmq.PUSH)
socket.connect('tcp://localhost:5575')
async def send_loop():
#print(f'Sending number {number}')
print("Send hello")
await socket.send_string("loaded")
#await asyncio.sleep(0.1)
print("end")
asyncio.run(send_loop())