eclipse-che / che-workspace-client

che-workspace-client
Eclipse Public License 2.0
4 stars 14 forks source link

Add websocket failed event #50

Closed JPinkney closed 3 years ago

JPinkney commented 3 years ago

What does this PR do?

This PR adds onDidWebSocketStatusChange so you can listen when a websocket is failing to connect. Also, the first 10 websocket reconnections are checked every second. After 5 seconds the websocket will emit the websocket status changed message. After 10 reconnections the websockets are checked every 30 seconds up until 30 reconnection attempts. This is needed on the dashboard-next side so that when/if a websocket fails to connect we can get that from the dashboard-next side

Which issue is this PR related to?

Pre-req for https://github.com/eclipse/che/issues/18490

Signed-off-by: Josh Pinkney joshpinkney@gmail.com