add Slice for raw bytes
add assertion that all write must called in loop thread
add WriteDoneCallback to indecate that all contents in connection buffer have been written to socket buffer