http中可以使用GatewayClient推送消息吗?报错Can not connect to tcp://127.0.0.1:1236 Connection refused

linmt

截图
截图

2789 1 0
1个回答

xiuwang

可以
调用GatewayClient的http和GatewayWorker是同一个服务器么?
不是的话 Gateway::$registerAddress='真实的gatewayWorkerip:1236';,不能是127.0.0.1

  • linmt 2020-04-27

    谢谢,发现我的php装在docker里,要写docker容器里的ip,服务还要在容器里开启

年代过于久远,无法发表回答
🔝