Handle WebSocket closed, Going away reason

Hi team.

We have detected that on some connections we are receiving this close-reason from the Genesys websocket: statusCode 1001, reason: Going away, and I would like to know what is the best way to handle this: if it is as simple as trying to reconnect again, waiting 10 seconds until we try to connect again, etc.

Thanks in advance.

Miguel

Hi,

Yes, that is the way to go.
Remote party tells you that connection is gracefully closed.
Wait few seconds and reconnect.

This may occur for different reasons.

  • if your browser navigates away from the page,
  • if you have too many connections opened for the same session (max 3 by default),
  • if the connection has been opened for too long (max 2 hours).

The list is not exhaustive.

Hope this helps,

Regards,
V.P.

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