Skip to content

Instantly share code, notes, and snippets.

@devdays
Created November 30, 2014 20:30
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 devdays/3c19df0189af130c439f to your computer and use it in GitHub Desktop.
Save devdays/3c19df0189af130c439f to your computer and use it in GitHub Desktop.
Chat application using SignalR
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