MCPcopy
hub / github.com/FlowiseAI/Flowise / streamCustomEvent

Method streamCustomEvent

packages/server/src/utils/SSEStreamer.ts:143–149  ·  view source on GitHub ↗
(chatId: string, eventType: string, data: any)

Source from the content-addressed store, hash-verified

141 }
142
143 streamCustomEvent(chatId: string, eventType: string, data: any) {
144 const clientResponse = {
145 event: eventType,
146 data: data
147 }
148 this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n')
149 }
150
151 streamStartEvent(chatId: string, data: string) {
152 const client = this.clients.get(chatId)

Callers 1

streamMetadataEventMethod · 0.95

Calls 2

safeWriteMethod · 0.95
stringifyMethod · 0.80

Tested by

no test coverage detected