class asyncio.StreamWriter(transport, protocol, reader, loop)
Wraps a Transport.
This exposes write(), writelines(), can_write_eof(), write_eof(), get_extra_info() and close(). It adds drain() which returns an optional Future on which you can wait for flow control. It also adds a transport attribute which references the Transport directly.
This class is not thread safe.
transport
Transport.
can_write_eof()
Return True if the transport supports write_eof(), False if not. See WriteTra