1、务必按照文档要求
把wss地址改成ws
2、加入以下配置
$con->transport = 'ssl';
$con->headers = [
'Sec-WebSocket-Accept' => 'workman-client',
'Sec-Websocket-Key' => 'SaVNe4xTuFTkmeH2VmfT9w==',
'Accept-Encoding'=>'gzip, deflate, br, zstd'
];
3、Sec-Websocket-Key 值也可以自己百度生成
$con->transport = 'ssl'