code: public Server onpublish(Action<Map<String, Object>> action) {
      publishActions.add(action);
      return this;
    }
docs: Adds an action to be called with a message to be published to every node in the cluster.