asyncio
asyncio copied to clipboard
Why asyncio.transport.write() function don`t send data until I use transport.close() or stop the event loop.
like this
def data_received(self, data):
resp = b'\x05' + struct.pack('!B', self.method)
self.transport.write(resp)
in asyncio.Protocol