openvidu-server: "connection" to "connectionId"

pull/609/head
pabloFuente 2021-02-02 16:37:45 +01:00
parent 6800e761a2
commit 51e2469701
3 changed files with 5 additions and 0 deletions

View File

@ -49,7 +49,9 @@ public class KmsEvent {
json.addProperty("timestamp", timestamp); json.addProperty("timestamp", timestamp);
json.addProperty("sessionId", participant.getSessionId()); json.addProperty("sessionId", participant.getSessionId());
json.addProperty("user", participant.getFinalUserId()); json.addProperty("user", participant.getFinalUserId());
// TODO: remove deprecated "connection" when possible
json.addProperty("connection", participant.getParticipantPublicId()); json.addProperty("connection", participant.getParticipantPublicId());
json.addProperty("connectionId", participant.getParticipantPublicId());
json.addProperty("endpoint", this.endpoint); json.addProperty("endpoint", this.endpoint);
json.addProperty("msSinceEndpointCreation", msSinceCreation); json.addProperty("msSinceEndpointCreation", msSinceCreation);
return json; return json;

View File

@ -638,6 +638,7 @@ public abstract class MediaEndpoint {
j.remove("sessionId"); j.remove("sessionId");
j.remove("user"); j.remove("user");
j.remove("connection"); j.remove("connection");
j.remove("connectionId");
j.remove("endpoint"); j.remove("endpoint");
j.remove("timestampMillis"); j.remove("timestampMillis");
jsonArray.add(j); jsonArray.add(j);

View File

@ -87,6 +87,7 @@ public class ParticipantSummary {
JsonObject j = cdrEvent.toJson(); JsonObject j = cdrEvent.toJson();
j.remove("participantId"); j.remove("participantId");
j.remove("connection"); j.remove("connection");
j.remove("connectionId");
jsonArrayPublishers.add(j); jsonArrayPublishers.add(j);
}); });
publishersJson.add("content", jsonArrayPublishers); publishersJson.add("content", jsonArrayPublishers);
@ -100,6 +101,7 @@ public class ParticipantSummary {
JsonObject j = cdrEvent.toJson(); JsonObject j = cdrEvent.toJson();
j.remove("participantId"); j.remove("participantId");
j.remove("connection"); j.remove("connection");
j.remove("connectionId");
jsonArraySubscribers.add(j); jsonArraySubscribers.add(j);
}); });
subscribersJson.add("content", jsonArraySubscribers); subscribersJson.add("content", jsonArraySubscribers);