Files
GMW/GMW-RT/ChatHub.cs
T
2014-04-02 12:27:25 +02:00

21 lines
463 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
namespace GMW_RT
{
public class ChatHub : Hub
{
public void Hello()
{
Clients.All.hello();
}
public void Send(string name, string message)
{
// Call the broadcastMessage method to update clients.
Clients.All.broadcastMessage(name, message);
}
}
}