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

Method publish

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

Source from the content-addressed store, hash-verified

158
159 // 发布消息
160 publish<T>(topic: string, message: NonNullable<T>) {
161 const fullTopic = `${this.name}${topic}`;
162 this.messageQueue.publish(fullTopic, message);
163 }
164
165 // 只发布给当前环境
166 emit<T>(topic: string, message: NonNullable<T>) {

Callers

nothing calls this directly

Calls 1

publishMethod · 0.65

Tested by

no test coverage detected