Created
November 30, 2014 20:30
-
-
Save devdays/3c19df0189af130c439f to your computer and use it in GitHub Desktop.
Chat application using 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
using System; | |
using System.Web; | |
using Microsoft.AspNet.SignalR; | |
namespace SignalRChat | |
{ | |
public class ChatHub : Hub | |
{ | |
public void Send(string name, string message) | |
{ | |
// Call the broadcastMessage method to update clients. | |
Clients.All.broadcastMessage(name, message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment