Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5409

wicket-native-websocket does not work with Safari/Safari iOS

    Details

      Description

      I noticed issue when tried this sample app: https://github.com/martin-g/blogs/tree/master/wicket6-websocket-broadcast

      Browsers I tried:
      Firefox v25.0
      Chrome v30.0.1599.101
      Safari v6.1

      Broadcast example seems to be not working with Safari:
      Firefox - works (broadcast messages displayed),
      Chrome - works,
      Safari - no broadcast messages displayed, console shows error: WebSocket connection to 'ws://localhost:8080/feed?0&pageId=0&wicket-ajax-baseurl=feed?0' failed: Error during WebSocket handshake: 'Connection' header value is not 'Upgrade'

      After bunch of different tests, decided to create basic wicket quickstart app - one home page with WebSocketBehaviour added, got same results:
      Firefox - works (no errors in console, websocket connection estabished),
      Chrome - works,
      Safari - websocked connection fails, console shows error: WebSocket connection to 'ws://localhost:8080/?0&pageId=0&wicket-ajax-baseurl=?0' failed: Error during WebSocket handshake: 'Connection' header value is not 'Upgrade'

      Another example (jetty chat app on websockets, unrelated to wicket) that I tested with minor fixes (upgraded to 7.6.9 jetty): http://webtide.intalio.com/wp-content/uploads/2011/08/example-websocket.zip
      Chat example works for all three browsers: Firefox, Chrome and Safari.

      Seems that wicket-native-websocket integration has issues with Safari.

        Attachments

        1. double_upgrade_header.pcapng
          7 kB
          Lorentz Green
        2. Screen Shot 2013-11-07 at 11.41.06 PM.png
          56 kB
          Lorentz Green
        3. wicket-quickstart-websocket.zip
          24 kB
          Lorentz Green

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              lorentzg Lorentz Green
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: