Real-time web library for ASP.NET with a simple API, broad reaching client support and incredible performance.
Demonstrates all features of the lower-level connection API including starting and stopping, sending and receiving messages, and managing groups.
A simple example of a background thread that broadcasts the server time to all connected clients every two seconds.
Demonstrates how to handle the events that are raised when connections connect, reconnect and disconnect from the Hub API.
Demonstrates how to use the authorization features of the Hub API to restrict certain Hubs and methods to specific users.
The canonical real-time web example: a chat application. Features user management, multiple rooms and rich content integration.
An example that displays a live cursor on all users' screens for all other users' mouse movements.
Demonstrates a shared canvas onto which users can place various shapes and move them around in real-time.
A sample that's used for measuring the full roundtrip time for invocations of Hub methods from client to server and back again.
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.
A sample that demonstrates Hub Connection API including starting and stopping, sending and receiving messages, and managing groups.
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.
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.