From 58df4118d1db8cd037b6090b4fbe2fbb742b2ba5 Mon Sep 17 00:00:00 2001 From: gparant Date: Wed, 29 Apr 2020 17:49:40 +0200 Subject: [PATCH] Refactor --- front/src/WebRtc/SimplePeer.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/WebRtc/SimplePeer.ts b/front/src/WebRtc/SimplePeer.ts index b04511d..3c94bba 100644 --- a/front/src/WebRtc/SimplePeer.ts +++ b/front/src/WebRtc/SimplePeer.ts @@ -8,14 +8,14 @@ export interface SimplePeerInterface { export class SimplePeer { Connexion: ConnexionInterface; MediaManager: MediaManager; - RoomId: string; + WebRtcRoomId: string; Users: Array; PeerConnexionArray: Array = new Array(); - constructor(Connexion: ConnexionInterface, roomId: string = "test-webrtc") { + constructor(Connexion: ConnexionInterface, WebRtcRoomId: string = "test-webrtc") { this.Connexion = Connexion; - this.RoomId = roomId; + this.WebRtcRoomId = WebRtcRoomId; this.MediaManager = new MediaManager(); this.initialise(); } @@ -62,7 +62,7 @@ export class SimplePeer { */ receiveWebrtcStart(message: string) { let data = JSON.parse(message); - this.RoomId = data.roomId; + this.WebRtcRoomId = data.roomId; this.Users = data.clients; //active button for player @@ -108,7 +108,7 @@ export class SimplePeer { * @param data */ sendWebrtcSignal(data: any, userId : string) { - this.Connexion.sendWebrtcSignal(data, this.RoomId, null, userId); + this.Connexion.sendWebrtcSignal(data, this.WebRtcRoomId, null, userId); } /** -- 2.25.1