@5minds/processcube_engine_client
Advanced tools
Comparing version 6.0.0-alpha.8 to 6.0.0-alpha.9
@@ -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": "6.0.0-alpha.8", | ||
"version": "6.0.0-alpha.9", | ||
"description": "Contains a typescript based client for accessing the Engine.", | ||
@@ -43,3 +43,3 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@5minds/processcube_engine_sdk": "6.1.0-alpha.6", | ||
"@5minds/processcube_engine_sdk": "6.1.0-alpha.7", | ||
"async-lock": "^1.4.1", | ||
@@ -46,0 +46,0 @@ "bufferutil": "4.0.9", |
Sorry, the diff of this file is not supported yet
350537
4994
+ Added@5minds/processcube_engine_sdk@6.1.0-alpha.7(transitive)
- Removed@5minds/processcube_engine_sdk@6.1.0-alpha.6(transitive)