Move the WebSocket target from inline code to a const near the top.