Node HTTP Ws Server

The node:http plus ws server for a Node Web Only project - src/ module layout, routing, static serving from public/, the WebSocket upgrade, broadcast, and graceful shutdown. Use when building or changing the backend server, adding a route or an API endpoint, serving the frontend, handling realtime messages, or deciding where an error is caught. Triggers on createServer, WebSocketServer, noServer, server.on('upgrade'), wss.handleUpgrade, serveStatic, path traversal guards, SIGTERM, and process.exit.

Tanq16 Updated 3 repo stars

File contents

Tanq16/claudex commit f9218092ff

Frequently asked questions

npx get-skill add tanq16/node-http-ws-server