Use close codes to indicate why websocket was closed
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
There are cases when we terminate the websocket connection to the client on our own:
- changed authentication settings
- cannot read / write from the upstream terminal provider
- session timeout (to be added)
We should use close codes to communicate the reason why the connection was closed to our frontend. See https://gitlab.com/gitlab-org/gitlab-ce/issues/26277#note_21331208.
References
Edited by 🤖 GitLab Bot 🤖