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

Method emit

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

Source from the content-addressed store, hash-verified

84
85 // 只发布给当前环境
86 emit<T>(topic: string, message: NonNullable<T>) {
87 this.EE.emit(topic, message);
88 }
89
90 // 创建分组
91 group(name: string, middleware?: MiddlewareFunction) {

Callers 1

mainFunction · 0.95

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected