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

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

/// <summary>
/// Browser-facing script-log push channel. Subscribers receive
/// <see cref="Commons.Messages.Logging.ScriptLogEntry"/> lines emitted by VirtualTagActor +
/// ScriptedAlarmActor as their hosted scripts log diagnostic output. Bridge:
/// <c>ScriptLogSignalRBridge</c> subscribes to the <c>script-logs</c> DPS topic and forwards
/// to every connected SignalR client.
/// </summary>
[Authorize]
public sealed class ScriptLogHub : Hub
{
    public const string Endpoint = "/hubs/script-log";
    public const string MethodName = "scriptLogEntry";
}
