Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-228

Default ports are required on the WS URI

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.0.8.Final, 1.1.Beta1
    • None
    • None
    • None

      This test fails - as the default port (:80) is missing inside of the URI

      @Test
          public void websocketORG() throws IOException, DeploymentException, URISyntaxException {
              final WebSocketContainer container = ContainerProvider.getWebSocketContainer();
              final URI securedEndpointURL = new URI("ws://echo.websocket.org"); // hrm, I really have to specify a port here ?
      
              container.connectToServer(new Endpoint() {
                  @Override
                  public void onOpen(Session session, EndpointConfig config) {
                      System.out.println("Connected!!!!!");
                  }
              },
                      ClientEndpointConfig.Builder.create().build(), // for some reason I have to provide that default config; Not so w/ Tyrus
                      securedEndpointURL);
          }
      

      Wouldn't it be nice if 443 and 80 are provided by default for users convenience ?

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              mwessend@redhat.com Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: