code: def send(self, message, body_params=None):
          
          if not self.connected:
              self._LOG.debug("Trying to send message when not connected. (discarded)")
          else:
              if body_params and isinstance(message, MsgProto):
                  proto_fill_from_dict(message.body, body_params)
  
              CMClient.send(self, message)
docs: .. versionchanged:: 0.8.4
          Send a message to CM
  
          :param message: a message instance
          :type message: :class:`.Msg`, :class:`.MsgProto`
          :param body_params: a dict with params to the body (only :class:`.MsgProto`)
          :type body_params: dict