()
| 54 | this._pc2.addEventListener('datachannel', this._onRemoteDataChannel.bind(this)); |
| 55 | |
| 56 | const initLocalOffer = async () => { |
| 57 | const localOffer = await this._pc1.createOffer(); |
| 58 | console.log(`Got local offer ${JSON.stringify(localOffer)}`); |
| 59 | const localDesc = this._pc1.setLocalDescription(localOffer); |
| 60 | const remoteDesc = this._pc2.setRemoteDescription(localOffer); |
| 61 | return Promise.all([localDesc, remoteDesc]); |
| 62 | }; |
| 63 | |
| 64 | const initRemoteAnswer = async () => { |
| 65 | const remoteAnswer = await this._pc2.createAnswer(); |
nothing calls this directly
no test coverage detected