WebSocketClient now handles HTTP redirects and authentication challenges