Skip to content

Instantly share code, notes, and snippets.

@kiliman
kiliman / AllMethods.cs
Created November 12, 2012 16:01 — forked from davidfowl/AllMethods.cs
Blog Post
public class Chat : Hub
{
public void Send(string message)
{
// Call addMessage on everyone
Clients.All.addMessage(message);
// Call addMessage on everyone except the caller
Clients.Others.addMessage(message);