We have a webapp which establishes a socket connection to make calls to backend services.
We authenticate using a Keycloak server. If receive a valid access token from Keycloak, we establish a websocket connection to our backend services.
If the Keycloak session expires, the websocket connection remains intact.
Is anyone aware of any patterns or examples or documentation, which would result in the websocket closing when the Keycloak session expires?