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

Provide option to initiate WebSocket upgrade

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.3.1.Final
    • 1.2.11.Final
    • None
    • None

    Description

      Something like ServerWebSocketContainer.addEndpoint(ServerEndpointConfig) but invoked at runtime with a pre-selected ServerEndpointConfig to upgrade the current request. In other words not a permanent registration of an endpoint but rather a request to perform an upgrade with a given endpoint.

      I realize this is outside JSR-356 and there is a request to update the spec WEBSOCKET_SPEC-211 but I haven't seen any activity for some time. In the mean time it would be very useful if there was some alternative in Undertow that can be used. For what it's worth Tomcat provides such an option through its WsServerContainer#doUpgrade method. WebSphere Liberty profile also provides an identical signature on its WsWsocServerContainer#doUpgrade method.

      This is useful for frameworks that wish to provide unified handling of the URL space making decisions how to map requests vs having URLs predetermined at startup and registered with the JSR-356 runtime. I'm sure it would be useful to some applications as well.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            px9de Rossen Stoyanchev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: