MCPcopy Index your code
hub / github.com/simstudioai/sim / subscribe

Method subscribe

apps/sim/lib/events/pubsub.ts:18–18  ·  view source on GitHub ↗
(handler: (event: T) => void)

Source from the content-addressed store, hash-verified

16export interface PubSubChannel<T> {
17 publish(event: T): void
18 subscribe(handler: (event: T) => void): () => void
19 dispose(): void
20}
21

Callers 12

store.tsFile · 0.65
chat-status.tsFile · 0.65
waitForToolConfirmationFunction · 0.65
pubsub.tsFile · 0.65
constructorMethod · 0.65
constructorMethod · 0.65
ToolSubBlockRendererFunction · 0.65
terminal.tsxFile · 0.65
route.tsFile · 0.65
SandboxCanvasProviderFunction · 0.65
runLocalPiFunction · 0.65

Implementers 2

RedisPubSubChannelapps/sim/lib/events/pubsub.ts
LocalPubSubChannelapps/sim/lib/events/pubsub.ts

Calls

no outgoing calls

Tested by

no test coverage detected