When I create a connection and the other peer joins, the owned data connection throws error sons send()
peerInitiator.on('connection', async dataConnection => { dataConnection.on('open', () => { dataConnection.on('data', this.handleData); dataConnection.send({ name: this.userName ? this.userName : 'Anonymous User' }); }); });
When I create a connection and the other peer joins, the owned data connection throws error sons send()
peerInitiator.on('connection', async dataConnection => { dataConnection.on('open', () => { dataConnection.on('data', this.handleData); dataConnection.send({ name: this.userName ? this.userName : 'Anonymous User' }); }); });