GET /status
Returns the current server status and the number of active matches. This endpoint is useful for health checks and monitoring.Endpoint
Authentication
No authentication required. This is a public endpoint.Response
Server status. Returns
"UP" when the server is running.The number of currently active matches on the server.
Response Example
Status Codes
200- Success
Implementation
Fromsrc/index.ts:22-25:
matchesRunning count is retrieved from the MatchController which tracks all active match sessions.
Use Cases
Health Monitoring
Use this endpoint in your monitoring system to verify server availability:Load Balancing
Check match count before routing new connections:Docker Health Check
Add to yourdocker-compose.yml:
Example Requests
Notes
- This endpoint always returns
200 OKwhen the server is running - The
matchesRunningcounter is updated in real-time - Matches are automatically removed after 30 minutes of inactivity
- CORS headers are included for browser-based requests