class ProtocolsWss not exist

zhang-kui

class \Protocols\Wss not exist

程序代码或配置

$con = new AsyncTcpConnection('wss://openspeech.bytedance.com:443/api/v2/asr');
        $con->transport = 'ssl';

        $con->onConnect = function(AsyncTcpConnection $con) {
            $con->send('hello');
        };

        $con->onMessage = function(AsyncTcpConnection $con, $data) {
            echo $data;
        };

        $con->connect();

重现问题的步骤

操作系统环境及workerman/webman等具体版本

workerman 版本3.5.34
php 版本 8.0.2
ws://openspeech.bytedance.com:443/api/v2/asr
截图

528 0 0
0个回答

×
🔝