AsyncTcpConnection wss 报错 Sec-WebSocket-Accept not found 已解决 并提供思路

miles

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 值也可以自己百度生成

154 1 0
1个回答

kof21411

$con->transport = 'ssl'

  • 暂无评论
×
🔝