news
Architecture
A single `server.js` file (~250-300 lines) using `http`, `crypto`, `fs`, and `path`. The file serves two roles: - **When run directly** (`node server.js`): starts the HTTP/WebSocket server - **When required** (`require('./server.js')`): exports WebSocket protocol functions for unit testing
← 返回教程列表
AI8899 · 内容仅供学习参考