socket :: TCPStream :: write_ln
msg
\n
# Write `msg`, with a trailing `\n` fun write_ln(msg: Text) do if closed then return write msg.to_s write "\n" end