$header = "Cookie: cId=26628661780583\r\n";
$header .= "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36\r\n";
$option = ;
$con = new AsyncTcpConnection('ws://www.test.com:9000/socket.io', $option);
这样设置没有效果,请问应该如何设置?
$header = ;
$option = ;
$con = new AsyncTcpConnection('ws://www.test.com:9000/socket.io', $option);这样试试!
试过了,没有效果。。。
找到了,在这里
https://github.com/walkor/Workerman/pull/374