Java introduced Java API for WebSocket to implement WebSocket but all browsers don't support WebSockets properly.
Some browsers don't support it at all, the support in the other ones may be incompatible (non standard or incomplete).
- So why use Java API for WebSocket? Why was it introduced in the first place?
- How to deal with browser incompatibility and low support for WebSockets?
- Should we use Java API for WebSocket and do short polling for browsers that don't support WebSockets on the browser side?
- Isn't node.js with socket.io (which gives many additional facilities like re-connectivity, etc...) an obvious choice instead of Java API for WebSocket?