using ZB.MOM.WW.MxGateway.Contracts.Proto;
namespace ZB.MOM.WW.MxGateway.Server.Dashboard.Hubs;
///
/// Fan-out point for MxEvents that should be mirrored to dashboard
/// SignalR clients subscribed to a session's events group. Implementations
/// must never throw — broadcast failures are best-effort and must not
/// disrupt the source gRPC stream.
///
public interface IDashboardEventBroadcaster
{
/// Publishes an MxEvent to all dashboard clients subscribed to the session.
/// The session identifier.
/// The MxEvent to publish.
void Publish(string sessionId, MxEvent mxEvent);
}