Skip to content

Instantly share code, notes, and snippets.

@slashP
Created March 7, 2013 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slashP/5106372 to your computer and use it in GitHub Desktop.
Save slashP/5106372 to your computer and use it in GitHub Desktop.
The simplest of SignalR
public class TorrentHub : Hub
{
public void Ping(string message)
{
Clients.All.Ping(message);
}
public void UpdateTorrents(string json)
{
Clients.All.UpdateTorrents(json);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment