code: def _save_ack_callback(self, msgid, callback):
          
          if msgid in self.ack_callbacks:
              return False
          self.ack_callbacks[msgid] = callback
docs: Keep a reference of the callback on this socket.