Created
March 7, 2013 08:12
-
-
Save slashP/5106372 to your computer and use it in GitHub Desktop.
The simplest of SignalR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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