Node.js Kafka consumer dropping Genesys Analytics WebSocket events

Hey folks,

Trying to pipe Genesys Cloud Analytics WebSocket events into a local Kafka topic using a Node.js consumer. The connection holds, but the throughput tanks after 500 messages. Events just vanish. No errors in the console, just silence.

  • Node 18
  • @genesyscloud/analytics-v2-sdk for auth
  • kafkajs for producer
  • Event: analytics:metrics:realtime

Here’s the producer logic:

producer.send({
 topic: 'genesys-events',
 messages: [{ value: JSON.stringify(event) }]
});

The callback never fires an error.