Discussions
Websocket connecting but not receiving chat messages
I'm writing a custom websocket server using the notification API in Nodejs. I create a new subscription with these options:
const options = { method: 'POST', headers: { accept: 'application/json', 'content-type': 'application/json', Authorization: Bearer ${this.axpAccessToken}, appkey: this.axpAppKey }, body: JSON.stringify({ "family": "AGENT_ENGAGEMENT", "events": [ "ALL" ], "transport": { "type": "WEBSOCKET" } }) };
and authenticate -> connect. When I start a chat I can see the traffic establishing a connection, but once the chat actually starts nothing is coming through. This happens whether I use a Chat or Async Messaging client and regardless of whether I run the code in NodeJS, or perform the equivalent calls in Postman.
I'm requesting ALL events, so why am I not receiving the actual chat messages?