Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
6.11.0
-
None
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.