}
arrayMap.forEach((value : any) => {
let roomId = value[0];
- this.Io.in(roomId).emit('user-position', JSON.stringify(arrayMap));
+ this.Io.in(roomId).emit(SockerIoEvent.USER_POSITION, JSON.stringify(arrayMap));
});
this.seTimeOutInProgress = setTimeout(() => {
this.shareUsersPosition();
});
//add lof info PeerConnexionArray
- this.PeerConnexionArray[user.userId]._debug = console.info;
+ //this.PeerConnexionArray[user.userId]._debug = console.info;
this.PeerConnexionArray[user.userId].on('signal', (data: any) => {
console.info("createPeerConnexion => sendWebrtcSignal : "+user.userId, data);
*/
private receiveWebrtcSignal(message: string) {
let data = JSON.parse(message);
- console.log("receiveWebrtcSignal", data);
- console.log("this.PeerConnexionArray[data.userId]", this.PeerConnexionArray[data.userId]);
+ console.log("receiveWebrtcSignal", data.userId);
+ console.log("receiveWebrtcSignal => data", data);
if(!this.PeerConnexionArray[data.userId]){
return;
}