From df70d5ca6f36b9bae8afa6c1ff732b7a90a7eade Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 19 Nov 2020 10:36:10 +0100 Subject: [PATCH] openvidu-node-client: serverData fix --- openvidu-node-client/src/Connection.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvidu-node-client/src/Connection.ts b/openvidu-node-client/src/Connection.ts index bf774c81..88e4263d 100644 --- a/openvidu-node-client/src/Connection.ts +++ b/openvidu-node-client/src/Connection.ts @@ -124,7 +124,7 @@ export class Connection { this.token = json.token; if (this.connectionProperties != null) { this.connectionProperties.type = json.type; - this.connectionProperties.data = json.data; + this.connectionProperties.data = json.serverData; this.connectionProperties.record = json.record; this.connectionProperties.role = json.role; this.connectionProperties.kurentoOptions = json.kurentoOptions; @@ -135,7 +135,7 @@ export class Connection { } else { this.connectionProperties = { type: json.type, - data: json.data, + data: json.serverData, record: json.record, role: json.role, kurentoOptions: json.kurentoOptions, @@ -146,7 +146,7 @@ export class Connection { } } this.role = json.role; - this.serverData = json.data; + this.serverData = json.serverData; // publishers may be null if (json.publishers != null) {