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

Function getRunningExpressApp

packages/server/src/utils/getRunningExpressApp.ts:3–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import * as Server from '../index'
2
3export const getRunningExpressApp = function () {
4 const runningExpressInstance = Server.getInstance()
5 if (
6 typeof runningExpressInstance === 'undefined' ||
7 typeof runningExpressInstance.nodesPool === 'undefined' ||
8 typeof runningExpressInstance.telemetry === 'undefined'
9 ) {
10 throw new Error(`Error: getRunningExpressApp failed!`)
11 }
12 return runningExpressInstance
13}

Callers 15

IdentityManagerClass · 0.90
createPredictionFunction · 0.90
saveChatflowFunction · 0.90
getSinglePublicChatflowFunction · 0.90
streamUploadedFileFunction · 0.90
deleteFileFunction · 0.90
removeAllChatMessagesFunction · 0.90
saveProcessingLoaderFunction · 0.90
processLoaderFunction · 0.90
deleteDocumentStoreFunction · 0.90

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected