MCPcopy Create free account
hub / github.com/simstudioai/sim / publish

Method publish

apps/sim/lib/copilot/request/session/writer.ts:90–97  ·  view source on GitHub ↗
(event: StreamEvent)

Source from the content-addressed store, hash-verified

88 }
89
90 publish(event: StreamEvent): void {
91 const envelope = this.createEnvelope(event)
92 this.enqueue(envelope)
93 this.queuePersistence(envelope)
94 if (event.type === MothershipStreamV1EventType.complete) {
95 this._sawComplete = true
96 }
97 }
98
99 markDisconnected(): void {
100 this._clientDisconnected = true

Callers

nothing calls this directly

Calls 3

createEnvelopeMethod · 0.95
enqueueMethod · 0.95
queuePersistenceMethod · 0.95

Tested by

no test coverage detected