\Gateway;
use GatewayWorker\Register;
use GatewayWorker\BusinessWorker;
class Gate{
/**
* 构造函数服务必须是text协议
$register = new Register('text://0.0.0.0:1237');
//初始化 bussinessWorker 进程BusinessWorker();
// worker名称
$worker->name = 'AppBusinessWorker';
// bussinessWorker进程数量= 2;
// 服务注册地址
$worker->registerAddress = '192.168.18.9:1237';
//设置处理业务的类,此处制定心跳间隔
$gateway->pingInterval = 180;
$gateway->pingNotResponseLimit = 1;
// 心跳数据