On logout, we're closing a WebSocket connection normally with a status code of 1000 Normal Closure - The connection successfully completed the purpose for which it was created.CloseEvent.code - Web APIs | MDNRFC 6455: The WebSocket Protocol before/without reloading the page.
Steps to reproduce
Actual
On logout, we're closing a WebSocket connection abnormally with an incorrect status:
1006 Abnormal Closure
We seem to be relying on page reload to destroy the websocket connection instead of closing it manually : https://github.com/canonical/maas-ui/blob/06a9d480f422a174a7bdfac3f6c89ecab04b827b/ui/src/app/base/sagas/http.ts#L138-L145Expected
On logout, we're closing a WebSocket connection normally with a status code of
1000 Normal Closure
-The connection successfully completed the purpose for which it was created.
CloseEvent.code - Web APIs | MDN RFC 6455: The WebSocket Protocol before/without reloading the page.May be related: https://github.com/canonical-web-and-design/maas-ui/issues/864