FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/dev / 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)