MCPcopy Create free account
hub / github.com/echoVic/blade-code / on

Method on

src/agent/MCPComponent.ts:56–59  ·  view source on GitHub ↗

* 添加事件监听器

(event: string, listener: (...args: any[]) => void)

Source from the content-addressed store, hash-verified

54 * 添加事件监听器
55 */
56 on(event: string, listener: (...args: any[]) => void): this {
57 this.eventEmitter.on(event, listener);
58 return this;
59 }
60
61 /**
62 * 移除事件监听器

Callers 11

index.tsFile · 0.45
mcpCommandFunction · 0.45
sendRequestMethod · 0.45
connectWebSocketMethod · 0.45
connectStdioMethod · 0.45
startMethod · 0.45
handleConnectionMethod · 0.45
handleStdioConnectionMethod · 0.45
initMethod · 0.45
demonstrateAdvancedUsageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected