Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created November 14, 2017 04:35
Show Gist options
  • Save Ibro/8c280923601726cd8ca522a04e2096fb to your computer and use it in GitHub Desktop.
Save Ibro/8c280923601726cd8ca522a04e2096fb to your computer and use it in GitHub Desktop.
ASP.NET Core SignalR chat with Angular 5 - https://codingblast.com/asp-net-core-signalr-chat-angular
public class ChatHub : Hub
{
public void SendToAll(string name, string message)
{
Clients.All.InvokeAsync("sendToAll", name, message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment