diff --git a/project/src/helpers/NotificationSendHelper.ts b/project/src/helpers/NotificationSendHelper.ts index 55a19119..ccd207e5 100644 --- a/project/src/helpers/NotificationSendHelper.ts +++ b/project/src/helpers/NotificationSendHelper.ts @@ -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); }