Use NetSocket's drainHandler in socket.write(). Add an example dir.