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

Function subscribe

ui/src/composables/useAsterClient.ts:234–239  ·  view source on GitHub ↗
(channels: ("progress" | "control" | "monitor")[], filter?: { agentId?: string; eventTypes?: string[] })

Source from the content-addressed store, hash-verified

232
233 // 订阅事件
234 const subscribe = (channels: ("progress" | "control" | "monitor")[], filter?: { agentId?: string; eventTypes?: string[] }) => {
235 if (!subscriptionManager.value) {
236 throw new Error("WebSocket not initialized");
237 }
238 return subscriptionManager.value.subscribe(channels, filter);
239 };
240
241 // 断开连接
242 const disconnect = () => {

Callers 1

EventsFunction · 0.85

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected