Push data in real-time over the web

StreamHub is a highly-scalable HTTP Comet and Reverse Ajax server allowing you to push live data to a web browser without requiring any plugins or security-policy changes. It uses a technique known as Comet or Reverse Ajax to keep a persistent connection open to the browser. HTML, Ajax, GWT, .NET, iPhone and Java clients can all receive data from StreamHub. Data can be streamed into StreamHub using the Java or .NET SDKs. StreamHub's highly-scalable architecture is used for streaming live stock quotes, spread betting, real-time monitoring, instant messaging/chat, live news/sports delivery, online gaming and a whole host of Rich Internet Applications.

In the traditional HTTP model, documents are requested synchronously from a server and the connection is closed after the document is delivered as in the diagram below:

Traditional HTTP Model

With Reverse Ajax and Comet, a permanent full duplex connection is established over HTTP, allowing the server to push events in real-time to the client:

Reverse Ajax and Comet HTTP Push Model

This is the reverse of the standard HTTP model as now the server can push updates to the client rather than the client requesting them.

StreamHub uses a standards-based publish/subscribe mechanism to push updates in JSON or custom formats to clients. Clients can be written in .NET, Java, GWT, or Ajax. Receiving updates is as simple as connecting to the push server and subscribing to topics or channels. For example, the following Ajax snippet shows how to achieve this:

var hub = new StreamHub();
hub.connect("http://localhost:7979/streamhub/");
hub.subscribe("/channel", function (sTopic, oJsonUpdate) {
    alert("Received an update on topic " + sTopic);
    alert("Contents: " + oJsonUpdate['field1']);
});

Publishing updates back to the push server is just as simple:

var hub = new StreamHub();
hub.connect("http://localhost:7979/streamhub/");
hub.publish("/channel", "{'field1':'value1','field2':'value2'}");

Free 60-day Evaluation

Evaluations are now available for the Web and Enterprise Editions of StreamHub Comet Server.
Fill in the evaluation form >>.

Community Edition

The Free Community Edition of StreamHub Reverse Ajax & Comet Server is now available.
Download it here >>.

StreamHub in action

See some examples of Reverse Ajax and Comet in action on our demo page.
Index of demos and examples >>.