WebSocket drops every 60 seconds in Genesys Cloud AppFoundry

Building a Cognigy bot integration. The WebSocket connection to Genesys Cloud drops exactly every 60 seconds. Getting ‘code=1006’ error. Here is the snippet:

const ws = new WebSocket(‘wss://api.mypurecloud.com/api/v2/analytics/events’);
ws.on(‘error’, (err) => console.log(err));

Any ideas?