Permalink
Browse files

Adding hub class

  • Loading branch information...
moozzyk committed Sep 15, 2017
1 parent 1ff04a8 commit 43e565087791348b4e3aab7e0037b576a4569ee7
Showing with 14 additions and 0 deletions.
  1. +14 −0 SignalRChat/SignalRChat.cs
View
@@ -0,0 +1,14 @@
using System;
using Microsoft.AspNetCore.SignalR;
namespace SignalRChat
{
public class ChatHub : Hub
{
public void Send(string name, string message)
{
// Call the broadcastMessage method to update clients.
Clients.All.InvokeAsync("broadcastMessage", name, message);
}
}
}

0 comments on commit 43e5650

Please sign in to comment.