Community
Participate
Working Groups
If the WebSocketClient is passed URIs such as ws://localhost with no port information, it fails with: java.lang.IllegalArgumentException: port out of range:-1 at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118) at org.eclipse.jetty.websocket.WebSocketClient.open(WebSocketClient.java:344)
Fixed by defaulting the ports to 80 and 443 if they are missing from the URI passed to WebSocketClient.open().