Created
August 4, 2023 20:43
-
-
Save nishanc/00be8db1b6d85c7526a6821cb3b6fe0b 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 ServerApp.SignalR; | |
public class NotificationHub : Hub<INotificationHub> | |
{ | |
public async Task SendNotificationToUserAsync(string message) | |
{ | |
await Clients.All.SendNotificationAsync(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment