Is Opa using AJAX or Websockets? I'm guessing it would be the former. What if I want to use websockets instead of AJAX? Or is it similar to socket.io for Javascript - if the browser supports Websockets it uses them, otherwise it falls back to AJAX & Flash sockets.
Asked
Active
Viewed 638 times
2 Answers
3
OPA doesn't currently support websockets.
But it's something we considere again, since firefox 6 brings back support for websockets and a fix is proposed for the previous big security issue.

Cédrics
- 1,974
- 11
- 13
-
This is the nice thing about socket.io, it hides the underlying details and uses websockets when its available - websockets being a bit faster than AJAX as I understand it. – aneccodeal Jul 10 '11 at 18:02
2
Opa is using AJAX currently.
Moreover, a think websocket is rarely supported (by browsers) for the moment due to security reason. And the RFC is still in draft.
Opa servers does not support websocket protocol for the moment.

Fred
- 1,092
- 5
- 9
-
AJAX is a bit of a kludge (though a very widely used Kluge). Websockets are much simpler and potentially faster. More browsers will be supporting websockets in the future. – aneccodeal Dec 01 '11 at 22:39