MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / addClient

Method addClient

packages/server/src/utils/SSEStreamer.ts:57–59  ·  view source on GitHub ↗
(chatId: string, res: Response)

Source from the content-addressed store, hash-verified

55 }
56
57 addClient(chatId: string, res: Response) {
58 this.clients.set(chatId, { clientType: 'INTERNAL', response: res, started: false })
59 }
60
61 /**
62 * Safely write data to a client's response. If the write fails (e.g., client already disconnected),

Callers 2

streamListenerFunction · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected