mirror of https://github.com/OpenVidu/openvidu.git
openvidu-node-client: serverData fix
parent
9b05739ea6
commit
df70d5ca6f
|
@ -124,7 +124,7 @@ export class Connection {
|
||||||
this.token = json.token;
|
this.token = json.token;
|
||||||
if (this.connectionProperties != null) {
|
if (this.connectionProperties != null) {
|
||||||
this.connectionProperties.type = json.type;
|
this.connectionProperties.type = json.type;
|
||||||
this.connectionProperties.data = json.data;
|
this.connectionProperties.data = json.serverData;
|
||||||
this.connectionProperties.record = json.record;
|
this.connectionProperties.record = json.record;
|
||||||
this.connectionProperties.role = json.role;
|
this.connectionProperties.role = json.role;
|
||||||
this.connectionProperties.kurentoOptions = json.kurentoOptions;
|
this.connectionProperties.kurentoOptions = json.kurentoOptions;
|
||||||
|
@ -135,7 +135,7 @@ export class Connection {
|
||||||
} else {
|
} else {
|
||||||
this.connectionProperties = {
|
this.connectionProperties = {
|
||||||
type: json.type,
|
type: json.type,
|
||||||
data: json.data,
|
data: json.serverData,
|
||||||
record: json.record,
|
record: json.record,
|
||||||
role: json.role,
|
role: json.role,
|
||||||
kurentoOptions: json.kurentoOptions,
|
kurentoOptions: json.kurentoOptions,
|
||||||
|
@ -146,7 +146,7 @@ export class Connection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.role = json.role;
|
this.role = json.role;
|
||||||
this.serverData = json.data;
|
this.serverData = json.serverData;
|
||||||
|
|
||||||
// publishers may be null
|
// publishers may be null
|
||||||
if (json.publishers != null) {
|
if (json.publishers != null) {
|
||||||
|
|
Loading…
Reference in New Issue