qc.on('call:started', function(peerId) {
if (qc.isMaster(peerId)) {
qc.createDataChannel(newChannel);
} else {
qc.requestChannel(peerId, newChannel, function() {
console.log('requestChannel callback fired');
});
}
}
qc.on('channel:opened', function(id, dc) {
console.log('channel opened');
});