Update agent_proxy.js

This commit is contained in:
uukelele-scratch 2025-01-21 21:47:36 +00:00 committed by GitHub
parent 3eeb88e60e
commit 1171bad1e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,14 @@ class AgentServerProxy {
console.log(`Restarting agent: ${agentName}`);
this.agent.cleanKill();
});
this.socket.on('send-message', (agentName, message) => {
try {
this.agent.respondFunc("NO USERNAME", message);
} catch (error) {
console.error('Error: ', JSON.stringify(error, Object.getOwnPropertyNames(error)));
}
});
}
login() {