From 15a874a40285401c292fa34bc0a5d4f61ab035f6 Mon Sep 17 00:00:00 2001 From: zhouaini528 <465382251@qq.com> Date: Fri, 8 Nov 2024 10:53:42 +0800 Subject: [PATCH] delete delivery websocket code --- src/Api/WebSocket/SocketServer.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/Api/WebSocket/SocketServer.php b/src/Api/WebSocket/SocketServer.php index 1ca4488..e08f2f5 100644 --- a/src/Api/WebSocket/SocketServer.php +++ b/src/Api/WebSocket/SocketServer.php @@ -196,8 +196,6 @@ private function other($con,$global){ $this->account($con,$global); - $this->coinFutureSubscribe($con,$global); - $this->debug($con,$global); //公共数据如果60秒内无数据更新,则断开连接重新订阅,重试次数不超过10次 @@ -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)); - } - } }