Skip to content

Commit

Permalink
delete delivery websocket code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Nov 8, 2024
1 parent 2dfccd6 commit 15a874a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/Api/WebSocket/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ private function other($con,$global){

$this->account($con,$global);

$this->coinFutureSubscribe($con,$global);

$this->debug($con,$global);

//公共数据如果60秒内无数据更新,则断开连接重新订阅,重试次数不超过10次
Expand Down Expand Up @@ -395,23 +393,4 @@ private function account($con,$global){

}
}

/**
* @param $con
* @param $global
*/
private function coinFutureSubscribe($con,$global){
if($con->tag!='public' && $this->config['baseurl']=='ws://dstream.binance.com'){
$data=[
"method"=>"REQUEST",
'params'=>[
'@account',
'@balance',
'@position',
],
'id'=>$this->getId()
];
$con->send(json_encode($data));
}
}
}

0 comments on commit 15a874a

Please sign in to comment.