simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.64k stars 1.2k forks source link

iceConnectionStateChange and RTCDataChannel #755

Open freaksN opened 5 years ago

freaksN commented 5 years ago

Hi guys, after having worked on App for chatting with SimpleWebRTC, which was functioning normally, some problems have started to occur. All of the sudden when 2 or more peers are connected to the same room after a couple of seconds the following is printed out on the console and there is no more connection between the peers.

**SimpleWebRTC event: iceConnectionStateChange Event {isTrusted: true, type: "iceconnectionstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} simplewebrtc.bundle.js:15106**

**SimpleWebRTC event: signalingStateChange Event {isTrusted: true, type: "signalingstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} simplewebrtc.bundle.js:15106**

**SimpleWebRTC event: channelClose RTCDataChannel {label: "simplewebrtc", ordered: true, maxRetransmitTime: 65535, maxRetransmits: 65535, protocol: "", …} Event {isTrusted: true, type: "close", target: RTCDataChannel, currentTarget: RTCDataChannel, eventPhase: 2, …}**

And this happen overnight. The code was not changed at all it just happening automatically. Any idea what has happed and how to fix this problem ?

fippo commented 5 years ago

this was probably due to the crash that should have been fixed by https://github.com/andyet/signalmaster/commit/7d468342a492f0d2af623db0a28e07a0abc84695