0

As i read here Stackoverflow using WebSocket to refresh the page data so i was thinking to use WebSocket for my JSF2 Web application so i searched for JSF2+WebSocket and found Here that WebSocket only Supports Jetty server . I have two questions here.

  1. Can we use WebSocket with Apache Tomcat Server?
  2. Is all major browser supports by WebSocket? , somewhere as i tested think link and IE9 do not supports WebSocket?

Even after all these constraints its good to use WebSocket?

Community
  • 1
  • 1
  • Most sites use something like SignalR to ensure that real-time transfers work properly with whatever technology the browser supports (e.g. WebSocket, SSE, XHR, long-polling, foreverframes, etc). – EricLaw Jul 30 '13 at 18:12
  • But its .net Product Can we use it with Java Programming as well or any other tool in market to do this? –  Jul 31 '13 at 04:33
  • 1
    SignalR is a set of technologies that runs in JavaScript and on the server. You can use the JavaScript library to talk to a Node.js server or any other instance. Or you could choose any of the myriad similar client libraries. – EricLaw Jul 31 '13 at 06:50

1 Answers1

2

Apache Tomcat has an experimental websocket implementation.

According to caniuse.com, Internet Explorer only supports WebSockets in version 10 and above. Internet Explorer 10 is unavailable for Windows versions prior to Windows 7, so when your application requires websockets, it won't work for anyone using IE on Windows XP or Vista, which is still a considerable market share. Another important platform which has no Websocket support is the Android browser.

Whether or not to use Websockets under the current circumstances is an opinion-based question.

Philipp
  • 67,764
  • 9
  • 118
  • 153
  • but Stackoverflow used this so it mean Stackoverflow also have these issue –  Jul 30 '13 at 08:09
  • 2
    @subodhjoshi I am too busy to dig through the sourcecode right now, but I am sure it is either an optional feature which is not required to use the site or there is a fallback using other technology like XMLHttpRequest. – Philipp Jul 30 '13 at 08:37