add code hub test

This commit is contained in:
2021-07-18 21:15:57 -04:00
parent 781c5cce27
commit 37b90af482
2 changed files with 19 additions and 4 deletions

View File

@ -0,0 +1,16 @@
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BinaryDad.Coding.Hubs
{
public class CodeHub : Hub
{
public async Task SendMessage(string user, string message)
{
await Clients.All.SendAsync("ReceiveMessage", user, message);
}
}
}