Commit c470d5d7 by zihan

改回只用一个ws

parent 1837a87f
...@@ -54,12 +54,12 @@ class biboxApi { ...@@ -54,12 +54,12 @@ class biboxApi {
console.log("fetch ws token error"); console.log("fetch ws token error");
this.subscribeSymbols(symbols, depth, callback); this.subscribeSymbols(symbols, depth, callback);
}else{ }else{
for(let i=0;i<2;i++){ // for(let i=0;i<2;i++){
const ip = IPs[0]; const ip = IPs[0];
setTimeout(()=>{ // setTimeout(()=>{
this._openWs(result, symbols, depth,ip, callback); this._openWs(result, symbols, depth,ip, callback);
},i*10000); // },i*10000);
} // }
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment