WebSocket Server: You can now use a custom HTTP server with the WebSocketServer, and it will emit a 'listening' event, making it easier to work with your server instance without needing to know how it was created.
Browser Compatibility: The package now includes a browser field in package.json, which helps tools identify the correct files for client-side delivery, enhancing compatibility with various bundlers.
Improvements
Host Header Support: The WebSocket server now supports overwriting the host header, giving you more control over your WebSocket connections.
Others
Code Cleanup: The installation script has been removed to streamline the setup process, making it simpler for users to get started.
Event Listening: The server now only listens for events when there is an actual server instance, improving performance and reducing unnecessary event handling.
Error Handling: The installation procedure has been updated to suppress unnecessary error messages, providing a smoother user experience during setup.