UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

5 lines 349 B
import { EventMultiplexer } from '../event-bus/event-multiplexer.js'; export function heartbeatEventPublisher(heartbeat) { heartbeat.on('heartbeat.beat', (componentId, _, timestamp, payload) => EventMultiplexer.publish('consumerHeartbeat.heartbeat', componentId, timestamp, payload.data)); } //# sourceMappingURL=heartbeat-event-publisher.js.map