openvidu-node-client: serverData fix

pull/567/head
pabloFuente 2020-11-19 10:36:10 +01:00
parent 9b05739ea6
commit df70d5ca6f
1 changed files with 3 additions and 3 deletions

View File

@ -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) {