Monday, 8 April 2013

HTML5 exciting things

New exciting things about HTML5 and new technologies are,
  • WebSocket is a web technology providing full-duplex communications channels over a single TCP connection. HTML is stateless. Really?Read websocket. Prior it was, server will communicate browser, browser will reply, and so on. One at a time. But websocket is two-way communication.
  • You can run sql in Web-browser. But it's no longer active, see, http://www.w3.org/TR/webdatabase/
  • WebRTC for real time communication (voice, video chat, etc)
  • Features like high performance 2D and 3D graphics, offline asset storage, rich audio APIs, and socket-based networking let you create compelling modern games with a reach like never before.
  • So on...
 WebSocket API
The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API for in Web IDL is being standardized by the W3C
Example,
We need to tell whether, connection is over ws or wss (like HTTP or HTTPS). Creating websocket object,
var ws = new WebSocket("ws://www.example.com");
more coming soon.

No comments:

Post a Comment