Files
uploader/zmq-server.py
T
2024-11-26 22:59:32 +00:00

23 lines
391 B
Python

#!/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())