Created
November 25, 2017 19:53
-
-
Save radu-matei/5d28200e30e0bf9af6f755bc85625884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.SignalR; | |
namespace signalr_aspnetcore | |
{ | |
public class ChatHub : Hub | |
{ | |
public void Send(string name, string message) | |
{ | |
// Call the broadcastMessage method to update clients. | |
Clients.All.InvokeAsync("broadcastMessage", name, message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment