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

Method subscribe

packages/message/message_queue.ts:23–23  ·  view source on GitHub ↗
(topic: string, handler: MessageHandler<T>)

Source from the content-addressed store, hash-verified

21
22 // 订阅消息
23 subscribe<T>(topic: string, handler: MessageHandler<T>): () => void;
24
25 // 发布消息
26 publish<T>(topic: string, message: NonNullable<T>): void;

Callers 15

subscribeMethod · 0.65
subscribeMessageFunction · 0.65
constructorMethod · 0.65
initMethod · 0.65
initManagerMethod · 0.65
initMethod · 0.65
initMethod · 0.65
initMethod · 0.65
initMethod · 0.65

Implementers 2

MessageQueuepackages/message/message_queue.ts
MessageQueueGrouppackages/message/message_queue.ts

Calls

no outgoing calls

Tested by

no test coverage detected