I have worked on Genesys Websocket connection to pull call logs in real time in our nodejs server. We already setup auto refresh token. it works as expected about 24 hours.
the issue is when we make websocket stay connected using refresh token and remove and recreate channel were broken after 48 hours or 2 days.
Does anyone know about it? What the solution for this?
it seemed from the log we lost the credential for some reasons.
Your application should be resilient enough to be able to detect interruptions in the websocket connection. Upon receiving a message that the websocket is or will be closed, or upon detecting that it no longer works due to failing to receive a heartbeat, the application should reinitialize its notification process.
Keep in mind that websockets don't offer guaranteed delivery. If that's required, you must use use Event Bridge instead.
If you need to know why the connection ended, you have to open a case with Care since we don't have access to that data.