WebSocket Handling: Enhance the WebSocket connection reliability by adding error and timeout handlers before the handshake, preventing server crashes during connection issues.
WebSocket Protocol: Improve the handling of Hixie close frames and allow empty messages, ensuring compliance with the WebSocket specification.
Improvements
Memory Management: Simplify the code by removing Object.defineProperties and setting properties directly, leading to clearer and more efficient memory usage.
Socket Management: Avoid crashes due to socket errors during shutdown, enhancing the overall stability of the WebSocket server.
Fixes
Fix high memory usage issues related to WebSocket connections, addressing potential memory leaks during heavy load scenarios.