start a nicegui implementation
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user