Skip to content

Instantly share code, notes, and snippets.

@cheoalfredo
Last active March 13, 2024 22:20
Show Gist options
  • Save cheoalfredo/cff00f75d05943d547b020a1fea7a60e to your computer and use it in GitHub Desktop.
Save cheoalfredo/cff00f75d05943d547b020a1fea7a60e to your computer and use it in GitHub Desktop.
SignalR Hub implementation
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