@openreplay/tracker-assist
Advanced tools
Comparing version 5.0.2-beta.1 to 5.0.2-beta.2
@@ -27,3 +27,3 @@ import type { Properties } from 'csstype'; | ||
private readonly noSecureMode; | ||
readonly version = "5.0.2-beta.1"; | ||
readonly version = "5.0.2-beta.2"; | ||
private socket; | ||
@@ -30,0 +30,0 @@ private peer; |
@@ -25,3 +25,3 @@ "use strict"; | ||
this.noSecureMode = noSecureMode; | ||
this.version = '5.0.2-beta.1'; | ||
this.version = '5.0.2-beta.2'; | ||
this.socket = null; | ||
@@ -64,2 +64,3 @@ this.peer = null; | ||
app.attachStopCallback(() => { | ||
console.log('Openreplay: triggered stop callback, normal restart: ', this.assistDemandedRestart); | ||
if (this.assistDemandedRestart) { | ||
@@ -191,5 +192,8 @@ return; | ||
}; | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e)); | ||
console.log('Openreplay: NEW_AGENT connected', this.assistDemandedRestart); // 5 0 2 b 1 | ||
if (this.app.active()) { | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => this.app.debug.error(e)); | ||
} | ||
}); | ||
@@ -206,5 +210,8 @@ socket.on('AGENTS_CONNECTED', (ids) => { | ||
}); | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e)); | ||
console.log('Openreplay: AGENTS_CONNECTED connected', this.assistDemandedRestart); // 5 0 2 b 1 | ||
if (this.app.active()) { | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => this.app.debug.error(e)); | ||
} | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids); | ||
@@ -436,2 +443,3 @@ }); | ||
var _a; | ||
console.error('Openreplay: called clean'); | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl(); | ||
@@ -438,0 +446,0 @@ if (this.peer) { |
@@ -27,3 +27,3 @@ import type { Properties } from 'csstype'; | ||
private readonly noSecureMode; | ||
readonly version = "5.0.2-beta.1"; | ||
readonly version = "5.0.2-beta.2"; | ||
private socket; | ||
@@ -30,0 +30,0 @@ private peer; |
@@ -23,3 +23,3 @@ import { connect, } from 'socket.io-client'; | ||
this.noSecureMode = noSecureMode; | ||
this.version = '5.0.2-beta.1'; | ||
this.version = '5.0.2-beta.2'; | ||
this.socket = null; | ||
@@ -62,2 +62,3 @@ this.peer = null; | ||
app.attachStopCallback(() => { | ||
console.log('Openreplay: triggered stop callback, normal restart: ', this.assistDemandedRestart); | ||
if (this.assistDemandedRestart) { | ||
@@ -189,5 +190,8 @@ return; | ||
}; | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e)); | ||
console.log('Openreplay: NEW_AGENT connected', this.assistDemandedRestart); // 5 0 2 b 1 | ||
if (this.app.active()) { | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => this.app.debug.error(e)); | ||
} | ||
}); | ||
@@ -204,5 +208,8 @@ socket.on('AGENTS_CONNECTED', (ids) => { | ||
}); | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => app.debug.error(e)); | ||
console.log('Openreplay: AGENTS_CONNECTED connected', this.assistDemandedRestart); // 5 0 2 b 1 | ||
if (this.app.active()) { | ||
this.assistDemandedRestart = true; | ||
this.app.stop(); | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }).catch(e => this.app.debug.error(e)); | ||
} | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect(ids); | ||
@@ -434,2 +441,3 @@ }); | ||
var _a; | ||
console.error('Openreplay: called clean'); | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.releaseControl(); | ||
@@ -436,0 +444,0 @@ if (this.peer) { |
{ | ||
"name": "@openreplay/tracker-assist", | ||
"description": "Tracker plugin for screen assistance through the WebRTC", | ||
"version": "5.0.2-beta.1", | ||
"version": "5.0.2-beta.2", | ||
"keywords": [ | ||
@@ -37,3 +37,3 @@ "WebRTC", | ||
"devDependencies": { | ||
"@openreplay/tracker": "5.0.1", | ||
"@openreplay/tracker": "file:../tracker", | ||
"@typescript-eslint/eslint-plugin": "^5.30.0", | ||
@@ -40,0 +40,0 @@ "@typescript-eslint/parser": "^5.30.0", |
154034
3452