MCPcopy Create free account
hub / github.com/astercloud/aster / initConnection

Function initConnection

ui/src/composables/useAgentLoop.ts:104–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 * 初始化 WebSocket 连接
103 */
104 const initConnection = async () => {
105 if (!isConnected.value) {
106 await connect(wsUrl);
107 }
108 return getInstance();
109 };
110
111 /**
112 * 发送思考事件

Callers 1

executeFunction · 0.85

Calls 2

connectFunction · 0.85
getInstanceFunction · 0.85

Tested by

no test coverage detected