The connection holds, but the message queue stalls after 200 events. No error logs, just silence. The payload looks fine when I dump the first few items to console.
Checked the subscription config and the topic mapping. It’s correct. Here’s the listener logic:
const ws = new WebSocket(‘wss://api.mypurecloud.com/analytics/events’);
ws.on(‘message’, data => { kafkaProducer.send(JSON.parse(data)); });
Is there a specific heartbeat or keep-alive frame required to prevent the stream from throttling?