Typed event map for ConfigWatcher.
watcher.on('subscriptionError', (err) => { console.warn('subscription error:', err.message);}); Copy
watcher.on('subscriptionError', (err) => { console.warn('subscription error:', err.message);});
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).
err
DecreeError
UnavailableError
Typed event map for ConfigWatcher.
Example