-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
stream_socket_client(): Unable to connect to tcp://0.0.0.0:2208 #48
Comments
You try to use the test example websocket, first open the server and then the client.And the server must be able to access the binance network normally. |
still same error after opening server first and then client. (1)in socketserver.php the code is following (2) in socketsserver.php file code is following. Fatal error: Uncaught Exception: The requested address is not valid in its context in NOTE: switch action one ,because I am subscribing. |
How can i echo this result data to the browser instead of CLI?I also want to save the data in my DB so how can I do in PHP? |
You can run the client directly in the browser usdt_ future.php.There are many ways for PHP to save databases online, but I suggest storing them in Redis first. |
Can not I get the results directly in php without running this CLI thing? |
server_usdt_future.php must be run in CLI mode, client_usdt_future.php has no restrictions. |
any response plz? |
thank u ,in linux it works perfectly.by using client_usdt_future.php,it outputs the following ticker info but it only returns one time. when i run the while loop. my browser stucks,i am running the following code.
|
If you want the browser to continuously output results, you can use javascript ajax technology to implement and access the client_ usdt_ future.php。 You can also output results in CLI mode without getting stuck. |
thank u. then what is the purpose of given while loop? |
You need to understand what a daemon.The purpose of the loop is to facilitate the output of the displayed data, all of which are in the linux system cli mode. You can try it on the command line cli and you will know. |
I am getting the following error
(1)Warning: stream_socket_client(): Unable to connect to tcp://0.0.0.0:2208 (The requested address is not valid in its context) in \lin_binance\vendor\workerman\globaldata\src\Client.php on line 66
(2)Fatal error: Uncaught Exception: The requested address is not valid in its context in\vendor\workerman\globaldata\src\Client.php:69 Stack trace: #0
feels like it is unable to connect to binance server
The text was updated successfully, but these errors were encountered: