@kendoo.agentdesk/agentdesk 0.7.2 → 0.7.3
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/cli/daemon.mjs +5 -1
- package/package.json +1 -1
package/cli/daemon.mjs
CHANGED
|
@@ -232,6 +232,7 @@ export async function runDaemon() {
|
|
|
232
232
|
|
|
233
233
|
function connectWs() {
|
|
234
234
|
try {
|
|
235
|
+
console.log(` ${dim}Connecting to ${DAEMON_URL}...${reset}`);
|
|
235
236
|
ws = new WebSocket(DAEMON_URL);
|
|
236
237
|
|
|
237
238
|
ws.on("open", () => {
|
|
@@ -284,7 +285,10 @@ export async function runDaemon() {
|
|
|
284
285
|
}
|
|
285
286
|
});
|
|
286
287
|
|
|
287
|
-
ws.on("error", () => {
|
|
288
|
+
ws.on("error", (err) => {
|
|
289
|
+
connected = false;
|
|
290
|
+
console.log(` ${red}Connection error:${reset} ${err.message}`);
|
|
291
|
+
});
|
|
288
292
|
|
|
289
293
|
ws.on("close", (code) => {
|
|
290
294
|
connected = false;
|