pub fn encode_frame(message: &[u8]) -> Result<Vec<u8>, RemoteError>
One framed message, ready to write.