feat(tracker): add multitab to assist plugin

This commit is contained in:
nick-delirium 2023-05-30 15:05:01 +02:00
parent fcaf0f9d86
commit 5a0b93ee1b
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
## 6.0.0
- added support for multi tab assist session
## 5.0.2
- Added `onCallDeny`, `onRemoteControlDeny` and `onRecordingDeny` callbacks to signal denial of user's consent to call/control/recording

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker-assist",
"description": "Tracker plugin for screen assistance through the WebRTC",
"version": "5.0.2",
"version": "6.0.0",
"keywords": [
"WebRTC",
"assistance",
@ -31,7 +31,7 @@
"socket.io-client": "^4.4.1"
},
"peerDependencies": {
"@openreplay/tracker": ">=5.0.0"
"@openreplay/tracker": ">=8.0.0"
},
"devDependencies": {
"@openreplay/tracker": "file:../tracker",

View file

@ -164,7 +164,7 @@ export default class Assist {
if (!sessionId) {
return app.debug.error('No session ID')
}
const peerID = `${app.getProjectKey()}-${sessionId}`
const peerID = `${app.getProjectKey()}-${sessionId}-${app.session.getTabId()}`
// SocketIO
const socket = this.socket = connect(this.getHost(), {