worldmaking / mischmasch

https://www.alicelab.world/msvr
MIT License
9 stars 1 forks source link

High Priority: webrtc connection already exists = crash #243

Open michaelpalumbo opened 1 year ago

michaelpalumbo commented 1 year ago
A peer connection with alice_testy-goatskin already exists

D:\github\mischmasch\node_modules\wrtc\lib\index.js:49
  this._send(data);       
       ^
DOMException [InvalidStateError]: RTCDataChannel.readyState is not 'open'     
    at RTCDataChannel.send (D:\github\mischmasch\node_modules\wrtc\lib\index.js:49:8)
    at D:\github\mischmasch\Components\Patch\Patch.js:478:52
    at Array.forEach (<anonymous>)
    at Patch.updatePeers (D:\github\mischmasch\Components\Patch\Patch.js:467:37)
    at Patch.add (D:\github\mischmasch\Components\Patch\Patch.js:158:14)      
    at EventEmitter.<anonymous> (D:\github\mischmasch\app.js:60:10)
    at EventEmitter.emit (D:\github\mischmasch\node_modules\eventemitter2\lib\eventemitter2.js:1041:22) 
    at Socket.<anonymous> (D:\github\mischmasch\node_modules\lepikevents\index.js:17:12)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:324:12)

Node.js v18.15.0