Search code examples
ajaxhtmlwebsocketcometd

Websocket vs Ajax vs cometd


I am about to use Ajax for a web dashboard w. real-time updates, planning on using Ajax but i hear websocket might be a good way to go.

Websocket or Ajax?

(cometd & jetty is also an option)


Solution

  • I recommend using AJAX since it will be compatible with the widest range of browsers.

    Web sockets sound promising but are currently only supported in Chrome and Firefox 3.7+ according to Wikipedia.