Polygon Websocket Not Connecting

I am trying to connect to the Polygon websocket at the url “wss://alpaca.socket.polygon.io/stocks” and I get the errors shown below. I am using the Java API, I’m not sure what to do next. The Polygon rest api connects great and when the: “wscat -c wss://alpaca.socket.polygon.io/stocks” command is run on linux it connects just fine. Does anyone know what to do to troubleshoot this?

Fixed in this PR.