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

Method streamTokenEvent

packages/server/src/utils/SSEStreamer.ts:165–171  ·  view source on GitHub ↗
(chatId: string, data: string)

Source from the content-addressed store, hash-verified

163 }
164
165 streamTokenEvent(chatId: string, data: string) {
166 const clientResponse = {
167 event: 'token',
168 data: data
169 }
170 this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n')
171 }
172
173 streamThinkingEvent(chatId: string, data: string, duration?: number) {
174 const clientResponse = {

Callers

nothing calls this directly

Calls 2

safeWriteMethod · 0.95
stringifyMethod · 0.80

Tested by

no test coverage detected