UNPKG

@camunda8/sdk

Version:

[![NPM](https://nodei.co/npm/@camunda8/sdk.png)](https://www.npmjs.com/package/@camunda8/sdk)

20 lines (19 loc) 825 B
export declare const ConnectionStatusEvent: { close: "close"; /** This is a latched error event. It will fire once to signal the start of a error state. */ connectionError: "connectionError"; ready: "ready"; unknown: "unknown"; /** The worker is applying a backoff. The duration of the backoff in ms is passed as a parameter to any listener */ backoff: "backoff"; /** This is an unlatched error event. It will fire multiple times when an error state is encountered. */ streamError: "streamError"; }; export type ConnectionStatusEventMap = { close: void; [ConnectionStatusEvent.connectionError]: void; [ConnectionStatusEvent.ready]: void; [ConnectionStatusEvent.unknown]: void; [ConnectionStatusEvent.backoff]: number; [ConnectionStatusEvent.streamError]: Error; };