_this.peer.on('connection', function(connn) {
_this.conn = connn;
if(_this.dataReceive == false) {
_this.conn.on('open', function() {
// Receive messages
_this.conn.on('data', function(data) {
if(data == 'cancel_call') {
//_this.conn.close();
$('#their-video').prop('src', null);
_this.connect = 'false';
_this.findPeople.findPeoplesAfterError(_this.peopleUserId,3);
}
connection. But sometimes don't work open event after making a connection.
Prompt please why don't work? Thanks