Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
chenbo 2023-10-21 11:39:51 +08:00
commit 00f49b08f0
5 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ class BusinessWorker extends Worker
* *
* @var string|array * @var string|array
*/ */
public $registerAddress = '172.19.97.179:1256'; public $registerAddress = '127.0.0.1:1236';
/** /**
* 事件处理类,默认是 Event * 事件处理类,默认是 Event

View File

@ -83,7 +83,7 @@ class Gateway extends Worker
* *
* @var string|array * @var string|array
*/ */
public $registerAddress = '172.19.97.179:1256'; public $registerAddress = '127.0.0.1:1236';
/** /**
* 是否可以平滑重启gateway 不能平滑重启,否则会导致连接断开 * 是否可以平滑重启gateway 不能平滑重启,否则会导致连接断开

View File

@ -34,7 +34,7 @@ class Gateway
* *
* @var string|array * @var string|array
*/ */
public static $registerAddress = '172.19.97.179:1256'; public static $registerAddress = '127.0.0.1:1236';
/** /**
* 秘钥 * 秘钥

View File

@ -36,7 +36,7 @@ class Gateway
* *
* @var string|array * @var string|array
*/ */
public static $registerAddress = '172.19.97.179:1256'; public static $registerAddress = '127.0.0.1:1236';
/** /**
* 秘钥 * 秘钥

View File

@ -64,7 +64,7 @@ require_once '真实路径/vendor/autoload.php';
* === 如果GatewayClient和GatewayWorker在同一台服务器 === * === 如果GatewayClient和GatewayWorker在同一台服务器 ===
* GatewayClient和Register服务都在一台服务器上ip填写127.0.0.1及即可,无需其它设置。 * GatewayClient和Register服务都在一台服务器上ip填写127.0.0.1及即可,无需其它设置。
**/ **/
Gateway::$registerAddress = '172.19.97.179:1256'; Gateway::$registerAddress = '127.0.0.1:1236';
// GatewayClient支持GatewayWorker中的所有接口(Gateway::closeCurrentClient Gateway::sendToCurrentClient除外) // GatewayClient支持GatewayWorker中的所有接口(Gateway::closeCurrentClient Gateway::sendToCurrentClient除外)
Gateway::sendToAll($data); Gateway::sendToAll($data);