What is the problem of deploying websocket built by swoole to docker?

the php project is deployed on docker. The master node returns the websocket server built by Swoole at port 10028 and listens on port 9502. The client failed to connect using IP plus port 9502. How to solve this problem

Feb.28,2021

check whether the ip you are listening to on your server is 0.0.0.0

.
$http = new swoole_http_server("0.0.0.0", 9501);
The

problem has been solved, just add a new tcp port to the cloud platform built by docker in the project.

Menu