Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(idScope: number, httpBase?: Base) {
super();
this._pollingHandlers = new HttpPollingHandlers(idScope, httpBase);
this._stateMachine = new PollingStateMachine(this._pollingHandlers);
this._stateMachine.on('operationStatus', (eventBody) => {
this.emit('operationStatus', eventBody);
});
}