OpenDecree TypeScript SDK - v0.3.0-alpha.1
    Preparing search index...

    Interface ConfigWatcherEvents

    Typed event map for ConfigWatcher.

    watcher.on('subscriptionError', (err) => {
    console.warn('subscription error:', err.message);
    });
    interface ConfigWatcherEvents {
        subscriptionError: [err: DecreeError];
    }
    Index

    Properties

    subscriptionError: [err: DecreeError]

    Emitted when a subscription error occurs.

    For retryable errors (UNAVAILABLE, INTERNAL) the watcher reconnects automatically. For non-retryable errors the watcher stops after emitting this event. The err argument is a typed DecreeError (e.g. UnavailableError).