Documents / @faasjs/core / getAll
Function: getAll()
getAll():
Server[]
Return all server instances created in the current process.
Returns
Server[]
Server instances tracked by the current process.
Example
import { join } from 'node:path'
import { Server, getAll } from '@faasjs/core'
const server = new Server(join(process.cwd(), 'src'))
getAll().includes(server)