fix(tracker): fix assist import in order to prevent fails with next imports
This commit is contained in:
parent
7022faa5eb
commit
a03b441f97
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { Socket } from 'socket.io-client';
|
||||
import io from 'socket.io-client';
|
||||
import { connect } from 'socket.io-client';
|
||||
import Peer from 'peerjs';
|
||||
import type { Properties } from 'csstype';
|
||||
import { App } from '@openreplay/tracker';
|
||||
|
|
@ -131,7 +131,7 @@ export default class Assist {
|
|||
const peerID = `${app.getProjectKey()}-${app.getSessionID()}`
|
||||
|
||||
// SocketIO
|
||||
const socket = this.socket = io(app.getHost(), {
|
||||
const socket = this.socket = connect(app.getHost(), {
|
||||
path: '/ws-assist/socket',
|
||||
query: {
|
||||
"peerId": peerID,
|
||||
|
|
@ -380,4 +380,4 @@ export default class Assist {
|
|||
this.app.debug.log("Socket disconnected")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue