feat(tracker): socketHost to support electron ws
This commit is contained in:
parent
4920a5ef42
commit
c97b1959be
3 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
## 7.0.0
|
||||
|
||||
- canvas suppoert
|
||||
- `socketHost` to support electron
|
||||
- canvas support
|
||||
|
||||
## 6.0.3
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -44,6 +44,7 @@ export interface Options {
|
|||
callConfirm: ConfirmOptions;
|
||||
controlConfirm: ConfirmOptions;
|
||||
recordingConfirm: ConfirmOptions;
|
||||
socketHost?: string;
|
||||
|
||||
// @deprecated
|
||||
confirmText?: string;
|
||||
|
|
@ -105,6 +106,7 @@ export default class Assist {
|
|||
callConfirm: {},
|
||||
controlConfirm: {}, // TODO: clear options passing/merging/overwriting
|
||||
recordingConfirm: {},
|
||||
socketHost: '',
|
||||
},
|
||||
options,
|
||||
)
|
||||
|
|
@ -155,6 +157,9 @@ export default class Assist {
|
|||
this.callingState = newState
|
||||
}
|
||||
private getHost():string{
|
||||
if (this.options.socketHost) {
|
||||
return this.options.socketHost
|
||||
}
|
||||
if (this.options.serverURL){
|
||||
return new URL(this.options.serverURL).host
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue