method
TCPSocket.flush
Flush any buffered data to the socket
This attempts to send the data immediately, but success depends on the network conditions and the receiving end. It might be necessary after several write calls if immediate sending is critical, though the OS often handles flushing efficiently. write calls outside open/data/drain might benefit from manual cork/flush.