mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add SignalR method to request status
This commit is contained in:
@@ -8,6 +8,12 @@ namespace ChrisKaczor.HomeMonitor.Hub.Service.Hubs
|
||||
[UsedImplicitly]
|
||||
public class DeviceStatusHub : Microsoft.AspNetCore.SignalR.Hub
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public async Task RequestLatestStatus()
|
||||
{
|
||||
await Clients.Others.SendAsync("RequestLatestStatus");
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
public async Task SendLatestStatus(string message)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user