Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;
namespace Practical.AspNetCore.SignalR
public class MessageHub : Hub
public Task SendMessageToAll(string message)
return Clients.All.SendAsync("ReceiveMessage", message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.