MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / sendToExtension

Method sendToExtension

apps/cli/src/agent/extension-host.ts:466–472  ·  view source on GitHub ↗
(message: WebviewMessage)

Source from the content-addressed store, hash-verified

464 // ==========================================================================
465
466 public sendToExtension(message: WebviewMessage): void {
467 if (!this.isReady) {
468 throw new Error("You cannot send messages to the extension before it is ready")
469 }
470
471 this.emit("webviewMessage", message)
472 }
473
474 // ==========================================================================
475 // Task Management

Callers 4

constructorMethod · 0.95
markWebviewReadyMethod · 0.95
runTaskMethod · 0.95
resumeTaskMethod · 0.95

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected