Commit 6fff205b by rongjun

bug

parent 2733d3a2
...@@ -78,11 +78,11 @@ class biboxApi { ...@@ -78,11 +78,11 @@ class biboxApi {
}); });
wss.on('message', (data) => { wss.on('message', (data) => {
const response = JSON.parse(data); const response = JSON.parse(data);
if(response.type === 'ack'){
const id = response.id;
setInterval(()=>{ setInterval(()=>{
wss.send(JSON.stringify({id,type:'ping'})) wss.send(JSON.stringify({id,type:'ping'}))
},40000); },40000);
if(response.type === 'ack'){
const id = response.id;
for(const symbol of symbols){ for(const symbol of symbols){
this._subscribeSymbol(wss, id, symbol, depth) this._subscribeSymbol(wss, id, symbol, depth)
} }
......
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