Add bytesWritten and messageBytesWritten