--- title: docs/class/NotificationAdapter group: docs --- # NotificationAdapter Main notification adapter that manages both backtest and live notification storage. Features: - Subscribes to signal emitters for automatic notification updates - Provides unified access to both backtest and live notifications - Singleshot enable pattern prevents duplicate subscriptions - Cleanup function for proper unsubscription ## Constructor ```ts constructor(); ``` ## Properties ### enable ```ts enable: (({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, order_sync, order_check, order_fill, order_reject, order_continue, order_stop, risk, pause, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void) & ISingleshotClearable<({ signal, info, partial_profit, parti... ``` Enables notification storage by subscribing to signal emitters. Uses singleshot to ensure one-time subscription. ### disable ```ts disable: () => void ``` Disables notification storage by unsubscribing from all emitters. Safe to call multiple times. ### getData ```ts getData: (isBacktest: boolean) => Promise ``` Gets all backtest/live notifications from storage. ### dispose ```ts dispose: (isBacktest: boolean) => Promise ``` Clears all backtest/live notifications from storage.