0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Fixed send message failing

This commit is contained in:
Chomp 2024-12-31 11:25:45 +00:00
parent 02082ef6f6
commit 828dcf83ab

View File

@ -26,7 +26,7 @@ export class NotificationSendHelper {
*/
public sendMessage(sessionID: string, notificationMessage: IWsNotificationEvent): void {
if (this.sptWebSocketConnection.isConnectionWebSocket(sessionID)) {
this.sptWebSocketConnection.sendMessage(sessionID, notificationMessage);
this.sptWebSocketConnection.sendMessageAsync(sessionID, notificationMessage);
} else {
this.notificationService.add(sessionID, notificationMessage);
}