Just van den Broecke

just[AT]justobjects.nl
www.justobjects.nl
www.pushlets.com

Subjects

About Me

Pushlets in a Nutshell

HTTP-based publish/subscribe

Why

Protocol

Topic Tree

Dataflow

dataflow

Data Listen Modes

These determine behaviour in C/S interaction

Poll Mode

poll

Stream Mode

stream

Pull Mode (1) - Block

pull1

Pull Mode (2) - Message Avail

pull2

Pull Mode (3) - Timeout

pull3

Event Publication

JavaScript Clients

Two libraries available

Web Client Example


<html>
  <head>
   <script type="text/javascript" src="../../lib/js-pushlet-client.js"></script>

   <script type="text/javascript">
     function init() {
       p_join_listen('/stocks/aex');
     }

     function onData(pushletEvent) {
       var stock = pushletEvent.get('name');
       var rate = pushletEvent.get('rate');
     }
    </script>
  </head>
  <body onLoad="init()">
    <script type="text/javascript">p_embed()</script>
       .
       . (HTML elements to present rates)
  </body>
  </html>

Other Clients

Several available

Configuration

Extensibility

Integration and Deployment