Module: server

Main server application for Commtool Members API This module initializes and configures the HTTP and WebSocket server with: - Express.js HTTP server with REST API endpoints - Socket.IO WebSocket server for real-time communication - Authentication and session management - Database connections and initialization - Error handling and logging - Graceful shutdown handling The server provides both REST API endpoints and real-time WebSocket connections for managing organization data, user authentication, and collaborative features.
Source:

Members

(static) io :any

Type:
  • any
Source:

(inner) monitorInterval :NodeJS.Timeout|null

Type:
  • NodeJS.Timeout | null
Source:

Methods

(async, inner) initServer(test) → {Promise.<void>}

Initialize the server with HTTP and WebSocket capabilities
Parameters:
Name Type Description
test boolean Whether this is a test environment
Source:
Returns:
Type
Promise.<void>

(async, inner) initializeApp() → {Promise.<object>}

Initialize the application by loading secrets and setting up modules
Source:
Returns:
Object containing all the imported module functions
Type
Promise.<object>