coding
Error Handling
- Malformed JSON from WebSocket clients: log to stderr, continue - Unhandled opcodes: close with status 1003 - Client disconnects: remove from broadcast set - `fs.watch` errors: log to stderr, continue - No graceful shutdown logic — shell scripts handle process lifecycle via SIGTERM
← 返回教程列表
AI8899 · 内容仅供学习参考