interface ICfgSyncPlugin {
    getCfg(): IConfiguration & IConfig;
    pause(): void;
    resume(): void;
    setCfg(config?: IConfiguration & IConfig): boolean;
    sync(customDetails?: any): boolean;
    updateEventListenerName(eventName?: string): boolean;
}

Methods

  • Get current configs of current instance.

    Returns IConfiguration & IConfig

  • Pause the sending/receiving of events

    Returns void

  • Resume the sending/receiving of events

    Returns void

  • Manually set configs of current instance.

    Parameters

    Returns boolean

  • Manually broadcast configs of current instance to all other instances.

    Parameters

    • OptionalcustomDetails: any

      additional details should also be sent out to other instances

    Returns boolean

  • Manually update event name. If current instance is the main instance, then following config changes will be sent out under this new event name. If current instance is listener instances, it will listen to event details under this new name.

    Parameters

    • OptionaleventName: string

      new event name

    Returns boolean