MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / emit

Method emit

packages/message/message_queue.ts:166–169  ·  view source on GitHub ↗
(topic: string, message: NonNullable<T>)

Source from the content-addressed store, hash-verified

164
165 // 只发布给当前环境
166 emit<T>(topic: string, message: NonNullable<T>) {
167 const fullTopic = `${this.name}${topic}`;
168 this.messageQueue.emit(fullTopic, message);
169 }
170}

Callers

nothing calls this directly

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected