Real-Time Web Technologies Guide


Hosted Realtime Services

General Messaging & PubSub

Hydna

Hydna is a hosted backend into which you can send data and have it instantly appear on other devices.

  • Real-Time messaging
  • Binary
  • WebSockets
  • Comet
  • Flash
  • HTTP/REST
  • Behaviors
  • Routing
  • Authentication
  • Room partitioning
  • Presence
  • .NET
  • Erlang
  • Java
  • Node.js
  • Objective-C
  • PHP
  • Python
  • Ruby
  • Multiplexing
Subscribe
JAVASCRIPT (CLIENT)
var channel = new HydnaChannel('public.hydna.net/my-channel', 'r');

channel.onmessage = function(event) {
  // handle update
};
Publish
JAVASCRIPT (CLIENT)
var channel = new HydnaChannel('public.hydna.net/my-channel', 'w');

channel.onopen = function(event) {
  channel.send('Hello world');
};
Authentication

Developers can deploy Behaviors (small snippets of code) to Hydna. Behaviors instruct Hydna how to behave when certain actions take place (when a channel is opened for example). This is useful when you want to keep state, authenticate users, connect with external services etc.

The following example describes how authentication can be added to a channel.

BEHAVIOR (HYDNA BEMACHINE)
// Create rules for channel "/admin" 
behavior('/admin', {
  open: function (event) {
    if (event.token == 'password) {
      event.allow();
    } else {
      event.deny('Incorrect password');
    }
  }
});
JAVASCRIPT (CLIENT)
var channel = new HydnaChannel('public.hydna.net/admin?password', 'w');

channel.onopen = function (event) {
  // Granted to open channel, handle update
};

channel.onclose = function (event) {
  if (event.wasDenied && event.data == 'Incorrect password') {
    // Incorrect password
  }
};

PubNub

Pubnub is the fastest cloud-hosted realtime messaging system for web and mobile apps.

  • BOSH
  • Fallback-support
  • Real-Time Client Push
  • Real-Time messaging
  • Real-Time data
  • Coldfusion
  • .NET
  • Erlang
  • Google App Engine (GAE)
  • Java
  • JavaScript
  • Lua-Corona
  • node.js
  • Objective-C
  • Perl
  • PHP
  • Python
  • Ruby
  • Silverlight
  • Titaniumf
  • REST API
  • PubSub
Subscribe
JAVASCRIPT (CLIENT)
var pubnub = PUBNUB.init({
  subscribe_key: 'demo'
});

pubnub.subscribe({
  channel: 'my_channel',
  message: function( msg )  {
    // handle update
  }
});
Publish
JAVASCRIPT (CLIENT)
var pubnub = PUBNUB.init({
  publish_key: 'demo'
});

pubnub.publish( {
  channel: 'my_channel',        
  message: 'hello!'
} );
PHP
$pubnub = new Pubnub(
  "demo",  ## PUBLISH_KEY
  "demo",  ## SUBSCRIBE_KEY
  "",      ## SECRET_KEY
  false    ## SSL_ON?
);

$info = $pubnub->publish( array(
  'channel' => 'hello_world',
  'message' => 'Hey World!'
) );    

Pusher

Pusher is a hosted API for quickly, easily and securely adding scalable realtime functionality to web and mobile apps.

  • WebSockets
  • HTTP fallback
  • Flash socket fallback
  • Real-Time Client Push
  • Real-Time messaging
  • Real-Time Data
  • in-built security
  • HTML5
  • JavaScript
  • Objective-C
  • Ruby
  • PHP
  • node.js
  • .NET
  • Silverlight
  • ActionScript
  • Google App Engine (GAE)
  • Erlang
  • Perl
  • Coldfusion
  • Python
  • Groovy
  • Java
  • REST API
  • Presence
  • PubSub
Subscribe
JAVASCRIPT (CLIENT)
var pusher = new Pusher( 'APP_KEY', options );
var channel = pusher.subscribe( 'my-channel' );
channel.bind( 'my-event', function( eventData ) {
  // handle event
} );
Publish
NODE.JS
var pusher = new Pusher( { appId: 'APP_ID', key: 'APP_KEY', secret: 'APP_KEY' } );
pusher.trigger( 'my-channel', 'my-event', { "some": "data" } );
PHP
$pusher = new Pusher( 'APP_KEY', 'APP_SECRET', 'APP_ID' );
$pusher->trigger( 'my-channel', 'my_event', array( 'some' => 'data' );

Realtime.co

The Realtime Messaging Framework is a cloud-hosted messaging system for websites and mobile apps that require constant content updates in just a few milliseconds, enabling any application to interact with millions of connected users in a fast and secure way.

  • Websockets
  • Fallback-support (streaming and polling)
  • Real-Time Client Push
  • Real-Time messaging
  • Real-Time data
  • .NET
  • Java / Android
  • JavaScript
  • Lua
  • iOS
  • Titanium Appcelerator
  • Windows Phone
  • node.js
  • Objective-C
  • PHP
  • Python
  • C/C++
  • Ruby
  • Silverlight
  • ActionScript
  • REST API
  • Pub/Sub
  • Presence
  • built-in security (authentication and authorization)
  • multiplexing (through the use of channels)
  • HTML5 real-time enabled templating engine (xRTML)
Subscribe
JAVASCRIPT (CLIENT)
var RealtimeClient = RealtimeFactory.createClient();
RealtimeClient.connect('[YOUR_APPLICATION_KEY]', '[USER_TOKEN]');

RealtimeClient.onConnected = function (theClient) {               
    theClient.subscribe('my-channel', true,
        function (theClient, channel, msg) {
            console.log("Received message:", msg);
        });                                
};    
Publish
JAVASCRIPT (CLIENT)
var RealtimeClient = RealtimeFactory.createClient();
RealtimeClient.connect('[YOUR_APPLICATION_KEY]', '[USER_TOKEN]');

RealtimeClient.onConnected = function (theClient) {               
    theClient.send('my-channel', 'Hello World');                                
};
PHP
$URL = 'http://ortc-developers.realtime.co/server/2.1';
$AK = '[YOUR_APPLICATION_KEY]';
$PK = '[YOUR_APPLICATION_PRIVATE_KEY]';
$TK = '[USER_TOKEN]'; // not necessary if private key is used

$rt = new Realtime( $URL, $AK, $PK, $TK );
$result = $rt->send("my-channel", "Hello World", $response);

WebSync on-demand (by FrozenMountain)

  • Comet
  • Real-Time Client Push
  • Real-Time messaging
  • Real-Time data

OpenPush – No activity since 2011

spire.io – Down. Status unknown

Build serverless applications with our secure, scalable web APIs for web and mobile development.

x-stream.ly – Service defunct

  • JavaScript
  • REST API
  • Presence
  • Real-Time Client Push

Kwwika – Service defunct

  • JavaScript
  • .NET
  • REST API
  • Real-Time Client Push
  • HTTP Streaming
  • Comet

Data Synchronisation, Persistence, Full Stack

Firebase

A scalable real-time backend for your web app. Build apps really fast without the hassle of managing servers

  • iOS
  • Java / Android
  • JavaScript
  • WebSockets
  • BaaS (Backend as a Service)
JavaScript (client)
var dataRef = new Firebase( 'https://my-app.firebaseio.com/' );

dataRef.push( { name: '@leggetter', text: 'Yo from FOWA!' } );

dataRef.on( 'child_added', function(snapshot) {
  // Add the data
} );

dataRef.on( 'child_changed', function(snapshot) {
  // Update the data
} );

dataRef.on( 'child_removed', function(snapshot) {
  // Remove the data
} );

Google Drive Realtime API

Add Realtime collaboration to your app Give your users the power of Google Docs–style collaboration. All JavaScript. No server. No sweat.

Meteor

Meteor is a set of new technologies for building top-quality web apps in a fraction of the time, whether you’re an expert developer or just getting started.

  • Node.js
  • fullstack
  • HTTP Streaming
  • HTTP Long-polling
  • WebSockets

Not to be confused with the original Meteor Comet server

Realtime.co Cloud Storage

The Realtime.co Cloud Storage is a highly-scalable backend-as-a-service based on Amazon DynamoDB. Built-in real-time notifications keep data synchronized between users (web and mobile).

  • BaaS
  • Real-time data sync
  • JavaScript
  • iOS
  • Android (Java)
  • Node.js
  • NoSQL
  • DynamoDB
  • HTTP Streaming
  • HTTP Long-polling
  • WebSockets
JavaScript (client)
var credentials = {
    applicationKey: "[YOUR_APPLICATION_KEY]",
    authenticationToken: "[USER_TOKEN]"
}

var storageRef = Realtime.Storage.create(credentials);
var tableRef = storageRef.table("chat-messages");

var chat-msg = {
    chatid : "My chat room",
    timestamp : +new Date(),
    text : "Hello World",
    nickname : "Beavis"
};

tableRef.push(chat-msg, function() {
    // item successfully committed to database    
});

tableRef.on("put", function(item) {
    // item was added to the database table
});

tableRef.on("update", function(item) {
    // item was updated at the database table
});

tableRef.on("delete", function(item) {
    // item was removed from the database table
});

simperium

Simperium is a service for developers to move data everywhere it’s needed, instantly and automatically.

Messaging: with focus on delivery to servers

Superfeedr

  • RSS
  • PubSubHubbub

DataSift

  • Social Media data
  • RSS
  • HTTP Streaming

Other

Echo

Self Hosted Realtime Services

Prosody

Prosody is a modern flexible communications server for Jabber/XMPP written in Lua. It aims to be easy to set up and configure, and light on resources. For developers it aims to be easy to extend and give a flexible system on which to rapidly develop added functionality, or prototype new protocols.

  • Jabber
  • XMPP
  • Lua
  • BOSH

Centrifuge

Simple platform for real-time message broadcasting in web applications.

  • WebSockets
  • SockJS
  • HTTP-fallback
  • Presence
  • Event/Message history
  • JavaScript
  • PubSub

Spike-Engine

Spike-Engine allows quick and painless creation of real-time web services in .NET. Spike-Engine focuses on latency, bandwith and perfomance and has been designed and proven to be robust and reliable. The technology has been tested in production environment with thousands of simultaneous connections and used to build reliable game and application servers.

  • RPC
  • Automatic Client Stub Generation
  • WebSockets
  • Fallback Support
  • Cross-Domain Support
  • Comet
  • Long-Polling
  • PubSub
  • HTTP
  • .NET
  • Flash
  • FlashSockets
  • SPML / SECP
  • HTTP Tunneling
  • Security
  • Cross-Platform
  • Monitoring

SignalR

  • WebSockets
  • Long-polling
  • ASP.NET
  • IIS
  • PubSub
  • RMI

Alchemy Websockets

An extremely efficient C# WebSocket server for .NET projects.

  • WebSockets
  • .NET
  • C#

SockJS

SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

  • WebSockets
  • Fallback-support
  • HTTP Streaming
  • HTTP Polling
  • JSONP Polling
  • Cross Domain support
  • EventSource

socket.io

Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It’s care-free realtime 100% in JavaScript.

  • WebSockets
  • Fallback-support
  • Flash Socket
  • HTTP Long-Polling
  • node.js
  • Cross Domain Support

Firehose.io

Firehose is a minimally invasive way of building realtime web apps without complex protocols or rewriting your app from scratch. Its a dirt simple pub/sub server that keeps client-side Javascript models in synch with the server code via WebSockets or HTTP long polling.

  • WebSockets
  • HTTP Long-Polling
  • Ruby

Thunder Push

Thunderpush is a Tornado and SockJS based push service. It provides a Beaconpush (beaconpush.com) inspired HTTP API and client.

  • SockJS
  • Python

Cramp

  • WebSockets
  • Server Sent Events
  • EventSource
  • Ruby

nowjs

  • node.js

Doesn’t appear to be actively maintained any more and the website is down.

SuperWebSocket, a .NET WebSocket server

  • WebSockets,
  • .NET

Fleck

Fleck is a WebSocket server implementation in C#. Fleck requires no inheritance, container, or additional references.

 

  • WebSockets
  • .NET

Persevere

  • Comet
  • PubSub

Migratory

  • Comet
  • WebSockets

Meteor

  • Comet
  • Perl

Beacon Push

  • WebSockets
  • Comet
  • Fallback-support
  • Real-Time Client Push
  • Real-time messaging
  • Real-Time Data
  • Python
  • Ruby
  • PHP
  • node.js
  • REST API

LightStreamer

  • Comet
  • WebSockets

Jetty

  • WebSockets
  • HTTP Streaming

Ratchet

A PHP 5.3 (PSR-0 compliant) component library for serving/consuming sockets and building socket based applications. Build up your application (like Lego!) through simple interfaces using the decorator and command patterns. Re-use your application without changing any of its code just by wrapping it in a different protocol.

  • PHP
  • WebSockets

WebSockets and Joomla

  • PHP
  • WebSockets
  • Joomla

Atmosphere

  • Comet
  • WebSockets
  • Scala
  • Groovy
  • Java

erlycomet

  • Comet

cometD

  • Comet

Pokein

  • Comet
  • ASP.NET
  • Mono

APE Project

  • WebSockets
  • Comet

StreamHub

Caplin System’s Liberator

  • Comet
  • WebSockets
  • Fallback-support
  • PubSub

ICEfaces

Kaazing

  • WebSockets
  • Fallback-support

FAYE

  • Real-Time messaging
  • Bayeux
  • node.js
  • Ruby

XSockets

  • WebSockets
  • .NET
  • Fallback-support

Tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.

Represents a core building block of many other realtime web servers.

misultin

  • WebSockets
  • Erlang

Cowboy

  • WebSockets
  • Erlang

YAWS (Yet Another Web Server)

  • WebSockets
  • HTTP Long-Polling
  • HTTP Streaming
  • Erlang

juggernaut deprecated

  • WebSockets
  • Comet
  • Fallback-support
  • node.js

PHP WebSocket

  • PHP
  • WebSockets

apache-websocket

WebSocket module for Apache

  • PHP
  • WebSockets
  • Apache

jwebsocket

  • Java
  • WebSockets

Goliath

  • Ruby
  • Asynchronous
  • non-blocking
  • HTTP Streaming

ws4py

  • Python
  • WebSockets
  • Server
  • Client

SocketTornad.IO

Implementation of the Socket.IO Websocket emulation protocol in Python on top of the non-blocking Tornado Web Framework.

  • Python
  • WebSockets
  • Server
  • Client

erlang_websocket

  • Erlang
  • WebSockets
  • Server

Slanger

Slanger is an open source server implementation of the Pusher protocol written in Ruby.

 

  • Ruby
  • WebSockets
  • Server

em-websocket

EventMachine based, async, Ruby WebSocket server.

  • Ruby
  • WebSockets
  • Server

Java-WebSocket

This repository contains a barebones WebSocket server and client implementation written in 100% Java. The underlying classes are implemented using the Java ServerSocketChannel and SocketChannel classes, which allows for a non-blocking event-driven model (similar to the WebSocket API for web browsers).

  • Java
  • WebSockets
  • Server
  • Client

Autobahn WebSocket

Autobahn provides Open-Source client and server implementations of WebSocket and WAMP.

  • WebSockets
  • Java
  • Android

libwebsockets

C Websockets Server Library

  • C
  • WebSockets
  • Server

ArduinoWebsocketServer

This library implements a Websocket server running on an Arduino

  • WebSockets
  • Server
  • Arduino

WebSocket Client Libraries

JavaScript – Flash Socket Fallback

ActionScript

.NET

Silverlight

Silverlight WebSocket client – prototype

Java

C++

Ruby

Python

Objective-C

Copy from http://www.leggetter.co.uk/real-time-web-technologies-guide#self-hosted

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s