WebSocket Protocol: Enjoy enhanced communication with the addition of subprotocol support, allowing clients and servers to negotiate the best protocol for their connection. This improves compatibility with various WebSocket services.
WebSocket Connection: Experience improved connection reliability with the addition of 'Host' and 'Origin' headers in requests, resolving issues with specific WebSocket services like Mtgox.
Improvements
WebSocket Connection: Access a simple example demonstrating how to use WebSocket over SSL, making it easier to implement secure connections.
WebSocket Events: Benefit from more accurate metrics collection as the close event is now emitted before the internal socket is destroyed, allowing for better tracking of connection statistics.
WebSocket Management: Enjoy improved resource management as the system now avoids setting multiple timeouts for a single connection, leading to faster shutdowns.
Fixes
Fix unexpected server response (400) when connecting to Mtgox WebSocket due to missing request headers.
Fix memory consumption issues caused by slab buffer retention, ensuring smoother performance and reduced resource usage.
Others
Add a target attribute to events for better event handling and compatibility with web standards.