up
This commit is contained in:
parent
001c289d24
commit
4a55bd6b77
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ export default class webRTC {
|
||||||
const key = this.getConnectionsKey(u)
|
const key = this.getConnectionsKey(u)
|
||||||
console.log("connect", key)
|
console.log("connect", key)
|
||||||
if (this.connections[key]) {
|
if (this.connections[key]) {
|
||||||
throw new Error('Connection already exists')
|
this.connections[key].close()
|
||||||
}
|
}
|
||||||
const conn = new wrtc.RTCPeerConnection(configuration) as RTCPeerConnection
|
const conn = new wrtc.RTCPeerConnection(configuration) as RTCPeerConnection
|
||||||
conn.onicecandidate = (event) => {
|
conn.onicecandidate = (event) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue