mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-08 07:36:01 +02:00
feat: implement notification sound functionality with user customization options
This commit is contained in:
@@ -73,4 +73,13 @@ public class SignalRBroadcaster : IChatBroadcaster
|
||||
|
||||
return HubContext.Clients.Client(connectionId).Error(message);
|
||||
}
|
||||
|
||||
public Task ForceDisconnectUserAsync(List<string> connectionIds, string reason)
|
||||
{
|
||||
var signalRIds = connectionIds.Where(c => !c.StartsWith("irc-")).ToList();
|
||||
if (signalRIds.Count == 0)
|
||||
return Task.CompletedTask;
|
||||
|
||||
return HubContext.Clients.Clients(signalRIds).ForceDisconnect(reason);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user