Last active
March 13, 2024 22:20
-
-
Save cheoalfredo/cff00f75d05943d547b020a1fea7a60e to your computer and use it in GitHub Desktop.
SignalR Hub implementation
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 WebsocketTest; | |
public class WSTestHub : Hub | |
{ | |
public async Task DifundirMensaje(string message) | |
{ | |
await Clients.All.SendAsync("MensajeRecibido", message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment