We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to join the agent using an agent IP
The text was updated successfully, but these errors were encountered:
<?php $header = array( 'http' => array( 'proxy' => 'ip:port', 'request_fulluri' => true, 'header' => "Proxy-Authorization: Basic " . base64_encode('user:pass'), ), ); $client = new \WebSocket\Client("ws://127.0.0.1:2566/", $header); $client->text("Hello WebSocket.org!"); echo $client->receive(); $client->close();
Sorry, something went wrong.
The above code is invalid, how to set it?
Hi @zhqingphp,
based on your code example, I suspect that it is the context option you're looking for, not header.
context
header
No branches or pull requests
How to join the agent using an agent IP
[ 'request_fulluri' => true, 'proxy' => 'ip:port', 'header' => [ 'Proxy-Switch-Ip' => 'yes', 'Proxy-Authorization' => 'Basic ' . base64_encode('user:pass') ], ] ];The text was updated successfully, but these errors were encountered: