Early Experiments with Web Sockets

This post is cross-posted from AppliedHTML5.com

Web Sockets are set to revolutionize the way the “real time web” works, today most websites use AJAX as a way to fake a real time dynamic experience… think a stream of Twitter tweets popping up relating to a current event. AJAX approaches that try to get to the “real time” end are similar to a kid riding in the back seat on a long driving vaction with their parents “Are we there yet?… Are we there now?… How about now?” constantly pinging their data sources asking if something changed. Web Sockets aim to change all that and simplify it for web users and developers across all web browsers and devices that contain them think Mobile devices, televisions, nearly anything with a screen in the future… you have to love open standards!

The Web Sockets API creates real time two way communications between a server and the end user allowing streaming of information back and forth just like a desktop application in real time without the waste of the current AJAX approach either checking too often when nothing has changed or potentially missing a new message between its checks the Web Socket will only transfer data when needed.

Well… Are we there yet?

We are not quite there yet, Web Sockets will require support on the server side and the client side but in my view both are progressing nicely. Here is a run down of the early Web Socket server side tool kits I could find.

Python

Ruby

PHP

JavaScript

Erlang

Browser Support

Web Sockets are currently supported in the developer releases of Google Chrome and will soon be available in Mozilla FireFox.

I think I’ve heard of this before… Is this new?

There are many players in this space trying to make real time information to the browser possible some names you may have heard are Comet, Ajax Push, and Ajax long polling (as I discussed earlier). I found a great post for the more technical among us that helps you decipher the differences in these protocols for further reading on the topic.

HTML 5 Web Sockets vs. Comet and Ajax

Posted from AppliedHTML5

No related posts.

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Early Experiments with Web Sockets

  1. I especially liked the idea of web sockets. Giving us the ability to send data directly to the user.Web Socket data frames can be sent back and forth between the client and the server in full-duplex mode.

  2. Alex Schulze says:

    jWebSocket is a pure Java/JavaScript high speed bidirectional communication solution for the Web – secure, reliable and fast!
    It’s free software and distributed under the LGPL. Download and check it out at http://jwebsocket.org.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>