Pushlet Demos

These show some examples of live events pushed by the server. In each example we subscribe to different subjects. Try the "ping" example first to see if Pushlets work for your browser. The last column contains links to the source code of the examples.

Version info.

Ping Test if Pushlets work for your browser/platform. You can test if either the "stream" (default) or "pull" mode works. run ping.html

Common JS pushlet lib:


Common AJAX pushlet lib (XmlHttpRequest)

Basics Illustrates page embedding, control events with subscribe/unsubscribe etc run raw.html

Basics with AJAX Same as Basics but using AJAX client. run raw-ajax.html


Temperature (Basic) Basic monitor of the temperatures in The Netherlands. run nl-temperature.html

Temperature (Map) Graphic display of the temperatures in The Netherlands using a graphic map with superimposed layers that are dynamically updated through the pushlet. run nl-weather.html
Stocks The following example illustrates how stock rates can be pushed from the server. Note: these are faked rates. A real application would use something like a Reuters live stockfeed at the back-end. run aex.html
Chat Here you are able to publish text events to the server who will dispatch them to others who have joined the chat. Try it with more users to see the effect. This is the AJAX version. run enter.html
AJAX Proof of concept to use AJAX technology through the XMLHttpRequest run ajax-2.html
Flash Simple Macromedia Flash client. For now in "pull" mode with strict XML. run .fla source in client/flash in distro 2.0.1+
WCQ - ICQ/MSN-like IM app This example illustrates using both publishing and subscribing. Presence is completely arranged by the clients who publish each other regular 'presence' events. There is no state on the server. When a user is entering/leaving the list a short sound is played. You can thus minimize the window and hear when users are entering/leaving. By clicking on a user you may send him/her with a short message. run wcq.html
System Resources Monitor aspects of the server's JVM. run system.html
Application Monitoring Monitor status of the pushlets themselves run pushlet-status.html
Web Presentation Automatically present webpages to multiple users. Normally this is done using a Teacher and Student roles as I use in classrooms. This is now emulated. Just sit back and relax. See also www.justobjects.org/cowcatcher. run webpres-student.html
Web Presentation2 Here a teacher pushes slides to multiple students. The student version of the HTML/pushet is the same as above. See also www.justobjects.org/cowcatcher. The trick here is that a JavaScript timer loop in teacher top frame is listening for URL changes in the teacher content iframe. If it detects a URL switch it calls p_publish() to publish the current URL. teacher
Catch all This busy page merely subscribes to all events coming from the server. This is done by subscribing to the subject "/". run all.html
Java Applet client The Pushlet Java client API (PushletClient.java) can be used in Java applications or Applets to control all services of a Pushlet session, including publishing events. Here is a very basic example of a Java Applet displaying temperature events. run pushlet-applet.html
Java Application client This is another example of the Puhslet client Java API. The PushletPingApplication publishes a small event to the server every few seconds. At the same time that client is receiving that event within the same Pushlet session. PushletPingApplication.java