Create development server instance.
Wings router to handle requests
Optional
options: ServerOptions = {}Server options
Protected
websocketSet of active WebSocket connections to track for cleanup.
Protected
websocketWebSocket server for live-reload.
WebSocket server port.
Check if SSL/HTTPS mode is enabled.
True if server is running in HTTPS mode
Get current configuration options.
Configuration options
Get underlying HTTP server instance.
Node.js HTTP server
Protected
activateProtected
createProtected
handleStart development server with live-reload.
Port to listen on
Optional
host: string = "localhost"Host to bind to (default: 'localhost')
Optional
callback: (() => void) = ...Optional callback
Resolves when listening
Protected
sendProtected
Convert Wings Context to HTTP response.
Wings context with response data
HTTP response object
Development server with live-reload for Wings. Extends NodeHttp to inject WebSocket-based reload scripts into HTML responses. For file watching, use Node.js CLI flags:
node --watch-path=./src boot.js
This restarts the server instantly, triggering browser reload via WebSocket.