demo/datachannels/page.js
Function negotiateState
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var negotiateState = function (text, button, channel) {
var state = {at: 0, text: text, button: button, channel: channel};
button.innerText = 'CreateOffer';
channel.on('ice', function (ice) {
state.text.value += '\n' + ice;
- Create a ticketCreate a ticket