Coding/BinaryDad.Coding/Hubs/CodeHub.cs

14 lines
313 B
C#
Raw Normal View History

2021-07-19 01:15:57 +00:00
using Microsoft.AspNetCore.SignalR;
using System.Threading.Tasks;
namespace BinaryDad.Coding.Hubs
{
public class CodeHub : Hub
{
2021-07-20 02:02:14 +00:00
public Task UpdateCode(string user, int index, string code)
2021-07-19 01:15:57 +00:00
{
2021-07-20 02:02:14 +00:00
return Clients.All.SendAsync("ReceiveCode", user, index, code);
2021-07-19 01:15:57 +00:00
}
}
}