Close the write end after flushing buffered data. (This is like typing ^D into a UNIX program reading from stdin.) Data may still be received.
asyncio/WriteTransport.write_eof
WriteTransport.write_eof