Sorry, working really long hours these days; just wanted to chime in that yes, you can call transport.write with large strings, and the reactor will do the right thing under the hood: loseConnection is the polite way of dropping a connection, which should wait for all pending writes to finish etc.
cheers