webman使用wss作为客户端报错Exception: class \Protocols\Wss not exist
<?php
namespace process;
use Workerman\Connection\AsyncTcpConnection;
class MarketProcess
{
public function onWorkerStart($worker)
{
$conn = new AsyncTcpConnection('wss://api-aws.huobi.pro/ws');
$conn->onConnect = function (AsyncTcpConnection $conn) {
dump($conn);
};
$conn->onMessage = function (AsyncTcpConnection $conn, $data) {
dump(gzdecode($data));
};
$conn->connect();
}
}
Exception: class \Protocols\Wss not exist in /Users/tomjson/Code/exchange-server/vendor/workerman/workerman/Connection/AsyncTcpConnection.php:156
Stack trace:
mac os
已经解决了
你好,你这个问题是怎么解决的
已解决
你还是在问题前面 标注已解决