22 lines
480 B
C#
22 lines
480 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Microsoft.AspNet.SignalR;
|
|
|
|
namespace MP_MON.Hubs
|
|
{
|
|
public class StatusMapHub : Hub
|
|
{
|
|
public void Hello()
|
|
{
|
|
Clients.All.hello();
|
|
}
|
|
|
|
public void Send(string name, string message)
|
|
{
|
|
// Call the addNewMessageToPage method to update clients.
|
|
Clients.All.addNewMessageToPage(name, message);
|
|
}
|
|
}
|
|
} |