1、务必按照文档要求 把wss地址改成ws 2、加入以下配置 $con->transport = 'ssl'; $con->headers = [ 'Sec-WebSocket-Accept' => 'workman-client', 'Sec-Websocket-Key' => 'SaVNe4xTuFTkmeH2VmfT9w==', 'Accept-Encoding'=>'gzip, ...