How do I properly subscribe to conversation events via the Notification API WebSocket? I’m using the Python SDK to open a connection, but the on_open callback never fires after I send the subscription request. I’m trying to track adherence metrics in real-time for our Central time queues, but the connection just sits there. Here’s the snippet:
ws = WebSocketApp('wss://api.mypurecloud.com/api/v2/analytics/events', on_open=on_open)
ws.send(json.dumps({'type': 'subscription', 'topic': 'conversation:voice'}))
Any idea why it’s not responding?