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

Method streamThinkingEvent

packages/server/src/utils/SSEStreamer.ts:173–180  ·  view source on GitHub ↗
(chatId: string, data: string, duration?: number)

Source from the content-addressed store, hash-verified

171 }
172
173 streamThinkingEvent(chatId: string, data: string, duration?: number) {
174 const clientResponse = {
175 event: 'thinking',
176 data: data,
177 duration: duration
178 }
179 this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n')
180 }
181
182 streamSourceDocumentsEvent(chatId: string, data: any) {
183 const clientResponse = {

Callers

nothing calls this directly

Calls 2

safeWriteMethod · 0.95
stringifyMethod · 0.80

Tested by

no test coverage detected