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

javax.websocket.Session.getNegotiatedSubprotocol returns an empty String

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.4.Final, 1.1.Beta1
    • 1.0.0.Final
    • Core
    • None

      Hi,

      I'm testing a programmatic websocket server endpoint (JSR-356 compatible), that can receive/send messages in different formats depending on the client's used subprotocol (i.e: "wamp.2.json", "wamp.2.msgpack", etc.).
      It works in Tomcat8 and Glassfish4, but in WildFly 8.0.0.Final, the javax.websocket.Session.getNegotiatedSubprotocol method returns an empty string (""), so it doesn't know how to decode/encode the messages.
      Also, it seems that the endpoint's custom ServerEndpointConfig.Configurator.getNegotiatedSubprotocol method is not been invoked.

      Thank you.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              jmarine_jira Jordi Mariné Fort (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: