acp-ws
Version:
基于 WebSocket 的智能体通信库,提供智能体身份管理和实时通信功能
18 lines (17 loc) • 521 B
JavaScript
import { signIn } from "./api";
export class HeartClient {
constructor() {
this.serverIp = "127.0.0.1";
this.port = 0;
this.signCookie = 0;
this.heartbeatInterval = 5000;
this.isRuning = false;
this.isSending = false;
this.seedPassword = "";
}
async signIn(aid, heartServer) {
const serverUrl = heartServer.replace("https://", "http://");
const privateKey = '';
const signData = await signIn(aid, serverUrl, privateKey);
}
}