diff --git a/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs index 921089bd..3b477876 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs @@ -11,7 +11,7 @@ namespace SPTarkov.Server.Core.Helpers; [Injectable] public class NotificationSendHelper( - IEnumerable _sptWebSocketConnectionHandler, + SptWebSocketConnectionHandler _sptWebSocketConnectionHandler, HashUtil _hashUtil, SaveServer _saveServer, NotificationService _notificationService, @@ -25,13 +25,9 @@ public class NotificationSendHelper( /// public void SendMessage(string sessionID, WsNotificationEvent notificationMessage) { - var sptWebSocketConnectionHandler = _sptWebSocketConnectionHandler - .OfType() - .FirstOrDefault(wsh => wsh.GetHookUrl() == "/notifierServer/getwebsocket/"); - - if (sptWebSocketConnectionHandler.IsWebSocketConnected(sessionID)) + if (_sptWebSocketConnectionHandler.IsWebSocketConnected(sessionID)) { - sptWebSocketConnectionHandler.SendMessage(sessionID, notificationMessage); + _sptWebSocketConnectionHandler.SendMessage(sessionID, notificationMessage); } else {