clay-server 2.14.0-beta.6 → 2.14.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/public/app.js +5 -0
- package/package.json +1 -1
package/lib/public/app.js
CHANGED
|
@@ -871,6 +871,11 @@ import { initCommandPalette, handlePaletteSessionSwitch, setPaletteVersion } fro
|
|
|
871
871
|
savedMainWs = null;
|
|
872
872
|
}
|
|
873
873
|
mateWs = null;
|
|
874
|
+
// If main ws is also closed (server shutdown), show disconnect screen
|
|
875
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) {
|
|
876
|
+
setStatus("disconnected");
|
|
877
|
+
scheduleReconnect();
|
|
878
|
+
}
|
|
874
879
|
};
|
|
875
880
|
}
|
|
876
881
|
|