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