ASP.NET SignalR

Real-time web library for ASP.NET with a simple API, broad reaching client support and incredible performance.

Learn more »

Connection API

Demonstrates all features of the lower-level connection API including starting and stopping, sending and receiving messages, and managing groups.

View sample »

Simple Streaming

A simple example of a background thread that broadcasts the server time to all connected clients every two seconds.

View sample »

Connection Status

Demonstrates how to handle the events that are raised when connections connect, reconnect and disconnect from the Hub API.

View sample »

Demo Hub

A contrived example that exploits every feature of the Hub API.

View sample »

Hub Authorization

Demonstrates how to use the authorization features of the Hub API to restrict certain Hubs and methods to specific users.

View sample »

Chat

The canonical real-time web example: a chat application. Features user management, multiple rooms and rich content integration.

View sample »

Mouse Tracking

An example that displays a live cursor on all users' screens for all other users' mouse movements.

View sample »

Drawing Pad

An example of a collaborative drawing pad using the HTML5 canvas API.

View sample »

Shape Share

Demonstrates a shared canvas onto which users can place various shapes and move them around in real-time.

View sample »

Hub Ping

A sample that's used for measuring the full roundtrip time for invocations of Hub methods from client to server and back again.

View sample »

Real-time Broadcast

A sample that uses a high-frequency timer to deliver updates at a high rate (e.g. 25 Hz) as might be typical in a real-time, multi-user HTML5 game.

View sample »

Hub Connection API

A sample that demonstrates Hub Connection API including starting and stopping, sending and receiving messages, and managing groups.

View sample »

Message Loops

A sample that demonstrates message loops where client calls the server method to broadcast message after the client successfully calls the server method once start, and shows missing and dup messages if happens.

View sample »

Simultaneous Connections

A sample that demonstrates simultaneous connections. You can add new connections via the button or default the number of active connections via the queryString parameters hubConnections and persistentConnections.

View sample »