@5minds/processcube_engine_client
Advanced tools
Comparing version 5.1.7 to 5.1.8
@@ -55,2 +55,3 @@ "use strict"; | ||
customErrorHandler = null; | ||
onHeartbeatCallback = null; | ||
abortController; | ||
@@ -93,2 +94,5 @@ abortSignal; | ||
} | ||
onHeartbeat(callback) { | ||
this.onHeartbeatCallback = callback; | ||
} | ||
start() { | ||
@@ -118,2 +122,5 @@ this._pollingActive = true; | ||
errorCount = 0; | ||
if (typeof this.onHeartbeatCallback === 'function') { | ||
this.onHeartbeatCallback(); | ||
} | ||
} | ||
@@ -120,0 +127,0 @@ catch (error) { |
@@ -15,2 +15,3 @@ import { Identity } from '@5minds/processcube_engine_sdk'; | ||
private customErrorHandler; | ||
private onHeartbeatCallback; | ||
private abortController; | ||
@@ -31,2 +32,3 @@ private abortSignal; | ||
onWorkerError(callback: WorkerErrorHandler): void; | ||
onHeartbeat(callback: () => void): void; | ||
start(): void; | ||
@@ -33,0 +35,0 @@ stop(): void; |
@@ -7,3 +7,3 @@ { | ||
"name": "@5minds/processcube_engine_client", | ||
"version": "5.1.7", | ||
"version": "5.1.8", | ||
"description": "Contains a typescript based client for accessing the Engine.", | ||
@@ -10,0 +10,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is not supported yet
357440
5102