code: def _client_send(self, msg):
          
          try:
              self._client.write(msg.encode("utf8") + b'\n')
              self._client.flush()
              self.log.debug('Snippet sent %s.', msg)
          except socket.error as e:
              raise Error(
                  self._ad,
                  'Encountered socket error "%s" sending RPC message "%s"' %
                  (e, msg))
docs: Sends an Rpc message through the connection.
  
          Args:
              msg: string, the message to send.
  
          Raises:
              Error: a socket error occurred during the send.