relay-to-relay
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -642,11 +642,11 @@ import Channel from 'simple-peer' | ||
rtc(){ | ||
const test = {id: crypto.randomUUID(), tried: [], start: this.id, another: (data) => {this.freshTemp(data)}, destroy: function(){ | ||
this.temps.delete(this.id) | ||
// for(const p in this){ | ||
// delete this[p] | ||
// } | ||
const test = {id: crypto.randomUUID(), tried: [], start: this.id} | ||
test.destroy = () => { | ||
if(this.temps.has(test.id)){ | ||
this.temps.delete(test.id) | ||
} | ||
if(this.status){ | ||
this.another(this) | ||
this.freshTemp(test) | ||
} | ||
}} | ||
} | ||
this.temps.set(test.id, test) | ||
@@ -778,3 +778,3 @@ | ||
if(this.dev){ | ||
console.log('have 6 or more users') | ||
console.log(base.id, 'have 6 or more users') | ||
} | ||
@@ -781,0 +781,0 @@ } |
{ | ||
"name": "relay-to-relay", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
61074