code: def publish(self, message, channel=None):
          
          if not self.master:
              return
          channel = channel or ''
          data = json.dumps(message)
          self.publisher.send_string("%s %s" % (channel, data))
docs: Publish a message for all turrets
  
          :param dict message: message to send to turrets
          :pram str channel: channel to send message, default to empty string