测试代码
try {
$clientIds = Gateway::getClientIdByUid($uid);
dd($clientIds);
} catch (Exception $e) {
dd($e->getMessage(), $e->getFile());
}
报错:
stream_socket_client(): Unable to connect to tcp://127.0.0.1:1236 (Connection refused)
/vendor/workerman/gateway-worker/src/Lib/Gateway.php
端口改成了32346但是获取的端口请求还是使用默认端口1236
gateway-worker
看下文档
哪个文档,能给个链接吗
Gateway::$registerAddress = '127.0.0.1:32316';
感谢,,找了半天没找到相关说明的手册
https://www.workerman.net/doc/gateway-worker/
这是所有文档集合:https://www.workerman.net/doc