shell-mirror 1.5.61 → 1.5.62
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/mac-agent/http-agent.js +3 -3
- package/package.json +1 -1
package/mac-agent/http-agent.js
CHANGED
|
@@ -17,7 +17,7 @@ require('dotenv').config();
|
|
|
17
17
|
class TerminalMirrorHttpAgent {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.config = {
|
|
20
|
-
webServerHttp: process.env.WEB_SERVER_HTTP || 'https://
|
|
20
|
+
webServerHttp: process.env.WEB_SERVER_HTTP || 'https://www.igori.eu',
|
|
21
21
|
agentSecret: process.env.AGENT_SECRET || 'mac-agent-secret-2024',
|
|
22
22
|
agentId: process.env.AGENT_ID || this.generateAgentId(),
|
|
23
23
|
pollInterval: parseInt(process.env.POLL_INTERVAL) || 500,
|
|
@@ -627,8 +627,8 @@ class TerminalMirrorHttpAgent {
|
|
|
627
627
|
let lastHeartbeat = 0;
|
|
628
628
|
|
|
629
629
|
while (this.isRunning) {
|
|
630
|
-
// Send heartbeat every
|
|
631
|
-
if (Date.now() - lastHeartbeat >
|
|
630
|
+
// Send heartbeat every 60 seconds
|
|
631
|
+
if (Date.now() - lastHeartbeat > 60000) {
|
|
632
632
|
await this.sendHeartbeat();
|
|
633
633
|
lastHeartbeat = Date.now();
|
|
634
634
|
}
|
package/package.json
CHANGED