Genesys Websocket

Hi,

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.

Thank you

Hi abstrakt_integration,

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.

Yes, we did pass 48 hours to stay connected, however, the 5th day, we tested again, we got 401.

we have implement refresh token automatically to reauthenticate. I think it works until the 5th days.

below is the error coming from axios library we used.

data: {
message: 'Invalid login credentials.',
code: 'bad.credentials',
status: 401,
contextId: '905987b9-b9d3-4694-acd6-b997497756d0',
details: [],
errors: []
}

any other issue that we should know about? do you have any suggestion?

Thank you

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.