- Node.js 18.17
- @genesys/cloud-node-client-sdk 1.54.0
- US/Pacific
I cannot figure out why my WebSocket connection to /api/v2/analytics/events drops immediately.
const ws = new WebSocket('wss://api.mypurecloud.com/api/v2/analytics/events', {
headers: { 'Authorization': `Bearer ${token}` }
});
Server returns 401 Unauthorized instantly. The same token works for REST calls. Is the Notification API requiring a different scope or handshake method?