(peerId, isCaller)
| 245 | } |
| 246 | |
| 247 | _openConnection(peerId, isCaller) { |
| 248 | this._isCaller = isCaller; |
| 249 | this._peerId = peerId; |
| 250 | this._conn = new RTCPeerConnection(RTCPeer.config); |
| 251 | this._conn.onicecandidate = e => this._onIceCandidate(e); |
| 252 | this._conn.onconnectionstatechange = e => this._onConnectionStateChange(e); |
| 253 | this._conn.oniceconnectionstatechange = e => this._onIceConnectionStateChange(e); |
| 254 | } |
| 255 | |
| 256 | _openChannel() { |
| 257 | const channel = this._conn.createDataChannel('data-channel', { |
no test coverage detected