Examples

At this time, all of the examples are written in Python using Django.

Headline

example-headline

Realtime updates of a simple object resource, with HTTP streaming, HTTP long-polling, and WebSockets.

The article uses Fanout Cloud instead of Pushpin, but the code is the same.

code (django) | article

Leaderboard

example-leaderboard

Displays a sorted list of scores. Updates are sent using HTTP streaming. RethinkDB is used as the data source.

code (django, react) | article | video | live instance

Todo list

example-todo

Live version of TodoMVC, using HTTP long-polling for updates.

code (django, react) | live instance

Live text editor

example-editor

Uses operational transformation (OT) algorithms for simultaneous editing (based on Tim Baumann’s project). Updates are sent using HTTP streaming.

code (django) | live instance

WebhookInbox

example-webhookinbox

WebhookInbox lets you easily create temporary URLs that can receive and store webhooks. The user interface displays new webhook requests in realtime as they are received.

code (django, angular) | live instance

Audio stream

example-audiostream

Plays music in a loop. The data is an MP3 stream over HTTP, which is playable in most browsers.

Song: Concerto a’ 4 Violini No 2 – Telemann (CC-BY).

code (django) | live audio stream