Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News HTML5 Labs Launched and WebSocket Update

HTML5 Labs Launched and WebSocket Update

This item in japanese


Last week Microsoft launched HTML5 Labs where they intend to post early prototypes of applications running on unstable web standard specifications for .NET developers.  The intent is to create an early dialogue with the developer communities and higher fidelity implementations of draft specifications.  The first two prototypes made available are IndexDB, an application based on the draft web specification for the storage of large amounts of structured data in the browser and an example WebSocket implementation.

Microsoft Implementation

The download from Microsoft contains a .NET implementation including:

  • A WCF 4.0 server-side implementation
  • A Prototype of the WCF Model for WebSocket
  • A Silverlight 4 client implementation
  • A .NET 4.0 client implementation
  • An HTML bridge from Silverlight to JavaScript
  • A web chat sample
  • A stock quote sample

WebSocket Draft

WebSocket is a draft protocol intending to define a bi-directional full-duplex communication protocol to allow web browsers and web servers to communicate without the HTTP protocol overhead.  It is designed to be implemented in both web browsers and web servers.  The communication begins once an initial connection has been established between browser and server.  If adopted, WebSocket will deprecate the HTTP long-polling mechanisms in use by developers today.  The WebSocket API is under the jurisdiction of the W3C Web Application Working Group while the IETF owns the working specification.

Currently the WebSocket draft is implemented in FireFox 4, Chrome, Opera 11, Safari 5 and both IE 8 & IE 9.  Apple has even implemented WebSocket in the latest release of iOS 4.2, while developers must wait for support in Windows Phone 7 and Android.

WebSocket Setbacks

Earlier this month, preliminary WebSocket implementations in FireFox 4 and Opera where disabled due to security concerns.  The problem lies not with web browsers, nor truly WebSocket, but with poorly implemented caching proxies which sit on most corporate and enterprise firewalls.  Within FireFox, it is possible to re-enable WebSocket by browsing to about:config and toggling network.websocket.override-security-block. General consensus is that eventual adoption of WebSocket in inevitable yet in an altered form to alleviate the current security concerns, but some feel XMPP sufficiently solves the same problem space.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • WebSockets in IE 8 and IE 9

    by Tomas Bosak,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    > Currently the WebSocket draft is implemented in FireFox 4, Chrome, Opera 11, Safari 5 and both IE 8 & IE 9.

    I'm not sure about WebSockets being supported/implemented in both IE 8 and IE 9. According to these[1] two[2] sources they aren't.


  • Re: WebSockets in IE 8 and IE 9

    by James Vastbinder,

    Your message is awaiting moderation. Thank you for participating in the discussion.


    You are correct, IE8 and IE9 are relying on a Silverlight client to provide a WebSocket client in the browser. It is not built into the browser itself.


Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.