MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / addObserver

Method addObserver

packages/server/src/utils/SSEStreamer.ts:33–40  ·  view source on GitHub ↗
(sourceChatId: string, observerId: string)

Source from the content-addressed store, hash-verified

31 }
32
33 addObserver(sourceChatId: string, observerId: string) {
34 let set = this.observers.get(sourceChatId)
35 if (!set) {
36 set = new Set()
37 this.observers.set(sourceChatId, set)
38 }
39 set.add(observerId)
40 }
41
42 removeObserver(sourceChatId: string, observerId: string) {
43 const set = this.observers.get(sourceChatId)

Callers 3

bindExecutionMethod · 0.80
connectMethod · 0.80
bindExecutionMethod · 0.80

Calls 3

setMethod · 0.80
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected