yodata 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/ws/index.js +3 -2
package/package.json
CHANGED
package/ws/index.js
CHANGED
@@ -39,9 +39,10 @@ this._connect(url, this.headers, options)
|
|
39
39
|
_catchSystem(){
|
40
40
|
setInterval(async ()=>{
|
41
41
|
if(this.cache === true) return;
|
42
|
+
|
42
43
|
this._messages = []
|
43
|
-
for(const d of this.historyPing.filter(data => data.use === true)) this.historyPing.
|
44
|
-
for(const d of this.historySend.filter(data => data.use === true)) this.historySend.
|
44
|
+
for(const d of this.historyPing.filter(data => data.use === true)) this.historyPing = this.historyPing.filter(x => x.id === d.id)
|
45
|
+
for(const d of this.historySend.filter(data => data.use === true)) this.historySend = this.historySend.filter(x => x.id === d.id)
|
45
46
|
|
46
47
|
}, 500)
|
47
48
|
}
|