You develop an HTML5 chat application.
You need to provide real-time updates to the messages that users post in the chat application.
What should you do?
A.
Use get o to obtain data updates.
B.
Use a RESTful web service.
C.
Use WebSockets.
D.
Use ajaxo to obtain data updates.
Explanation:
Web Sockets is a next-generation bidirectional communication technology for web applications which operates
over a single socket and is exposed via a JavaScript interface in HTML 5 compliant browsers.
Once you get a Web Socket connection with the web server, you can send data from browser to server by
calling a send() method, and receive data from server to browser by an onmessage event handler.
HTML5 – WebSockets Tutorial