Publish a message to all other Actionhero nodes in the cluster. Will be authenticated against api.config.serverToken
api.config.serverToken
let payload = { messageType: 'myMessageType', serverId: api.id, serverToken: api.config.general.serverToken, message: 'hello!'}await api.redis.publish(payload) Copy
let payload = { messageType: 'myMessageType', serverId: api.id, serverToken: api.config.general.serverToken, message: 'hello!'}await api.redis.publish(payload)
Publish a message to all other Actionhero nodes in the cluster. Will be authenticated against
api.config.serverToken