this.saveUserInformation((socket as ExSocketInterface), messageUserPosition);
//refresh position of all user in all rooms in real time
- let rooms = (this.Io.sockets.adapter.rooms as ExtRoomsInterface)
+ let rooms = (this.Io.sockets.adapter.rooms as ExtRoomsInterface);
+ if(!rooms.refreshUserPosition){
+ rooms.refreshUserPosition = RefreshUserPositionFunction;
+ }
rooms.refreshUserPosition(rooms, this.Io);
});
this.eventVideoAnswer();
this.eventIceCandidate();
- //connect on the room to create a meet
- Connexion.socket.emit('webrtc-room', JSON.stringify({roomId: roomId}));
+ //start to connect on event
+ //TODO test
+ this.emitWebRtcRoom();
}
/**
});
}
+ emitWebRtcRoom(){
+ //connect on the room to create a meet
+ this.Connexion.socket.emit('webrtc-room', JSON.stringify({roomId: this.RoomId}));
+ }
+
emitIceCandidate(message : any){
message.roomId = this.RoomId;
this.Connexion.socket.emit('ice-candidate', JSON.stringify(message));