websocket客户端怎么在收到登录成功后再发送一条订阅信息呢?

good
$worker = new Worker();
 $worker->onWorkerStart = function($worker) {
  $con = new AsyncTcpConnection('ws://www.abc.com:433');
        $con->transport = 'ssl';
        $con->onConnect = function($con) {
            $data = json_encode();
            $con->send($data);
            };
        $con->onMessage = function($con, $data) {
        };
        $con->connect();
3143 1 0
1个回答

朕震惊了

就是这样的吧

  • 暂无评论
年代过于久远,无法发表回答
×
🔝