actionhero
    Preparing search index...

    Function publish

    • Publish a message to all other Actionhero nodes in the cluster. Will be authenticated against api.config.serverToken

      let payload = {
      messageType: 'myMessageType',
      serverId: api.id,
      serverToken: api.config.general.serverToken,
      message: 'hello!'
      }

      await api.redis.publish(payload)

      Parameters

      • payload: object | any[]

      Returns Promise<number>