請問 GateWay 是否可以加單獨的一個Worker支持API來發(fā)消息?
現(xiàn)在我加了一個worker支持http請求,然后想通過Gateway::getClientIdByUid()來向單個用戶發(fā)送消息
但是發(fā)現(xiàn)報如下錯誤
Exception: Can not connect to tcp://127.0.0.1:1236 Connection refused in /data/www/vendor/workerman/gateway-worker/src/Lib/Gateway.php:1352
使用的并非我的注冊地址,是默認(rèn)的。這是不是意味著我需要使用new BusinessWorker()來創(chuàng)建新的worker
指定BusinessWorker的注冊地址。如果這樣,會不會影響那些之前發(fā)消息的BusinessWorker。謝謝!