using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;

namespace ZB.MOM.WW.OtOpcUa.AdminUI.Hubs;

/// <summary>
/// Browser-facing alert push channel. Subscribers receive
/// <see cref="Commons.Messages.Alerts.AlarmTransitionEvent"/> snapshots whenever an alarm fires,
/// clears, or is acknowledged on any cluster node. Bridge: <c>AlertSignalRBridge</c> subscribes
/// to the <c>alerts</c> DPS topic and forwards to every connected SignalR client.
/// </summary>
[Authorize]
public sealed class AlertHub : Hub
{
    public const string Endpoint = "/hubs/alerts";
    public const string MethodName = "alarmTransition";
}
