SignalR – Building Blocks

If you are not aware, to ensure communications of messages, SignalR uses three techniques (found across browsers) [ in this order ];

  1. WebSockets (support in HTML5): This is an HTML 5 specification for a single socket connection (full-duplex) [ Javascript Interface] over which messages can be sent between client and server.
  2. ServerSideEvents (support in other browsers): Also called Event Source. It’s a push technology for sending notifications from the server to a client in the form of DOM Events.
  3. ForeverFrames (support in IE): This makes use of Chunking as found in the HTTP specification, but simiplistically is a Hidden iFrame in a Page that maintains a long-lived connection. Chunking is the process of breaking down large data and sending it incrementally and that same concept exists here with the Hidden iFrame.
  4. Long Polling: Like Polling except the server does not return to client until it is complete (getting the data)
So it will make use of each of these 4 technologies as it sees fit, where it is supported or not.

Hope this helps.

Dane

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone