Files
podnoms/server/Services/Hubs/DebugHub.cs
2018-04-13 22:03:05 +01:00

12 lines
358 B
C#

using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;
namespace PodNoms.Api.Services.Hubs {
[Authorize (AuthenticationSchemes = "Bearer")]
public class DebugHub : Hub {
public async Task Send (string message) {
await Clients.All.SendAsync ("Send", message);
}
}
}