UNPKG

npaw-plugin-nwf

Version:
24 lines (23 loc) 892 B
export type SessionRecoveryMode = 'auto' | 'never'; export default class NpawPluginOptions { /** * Fast Data server host * Default: 'lma.npaw.com' */ host?: string | undefined; components?: any; balancerAnalyticsEnabled?: boolean | undefined; /** * Controls behaviour when an active session expires. * - 'auto' (default): plugin transparently creates a new session re-using the last start params. * - 'never': plugin drops queued events, fires SESSION_EXPIRE, and waits for the host app to * start a new session explicitly. Useful in environments (e.g. SmartTVs with multitasking * freeze/resume) where automatic recovery races the app and produces ghost sessions. */ sessionRecovery?: SessionRecoveryMode; /** * Object that contains the legacy NPAW plugin */ legacyPlugin?: any; constructor(); }