tcp 的链接不行 websocket 是可以的
tcp
$gateway_text->startPort = 2500;
// 心跳间隔
$gateway->pingInterval = 30;
//次数
$gateway->pingNotResponseLimit = 1;
// 心跳数据
$gateway->pingData = 'ping';
websocket
// 心跳间隔
$gateway->pingInterval = 7;
//次数
$gateway->pingNotResponseLimit = 2;
// 心跳数据
$gateway->pingData = '';
root TodpoleBusinessWorker none 4
root TodpoleGateway websocket://0.0.0.0:8282 4
root Register text://0.0.0.0:1237 1
root TodpoleGatewayTcp tcp://0.0.0.0:8283 4
root WebServer http://0.0.0.0:8383 2
----------------------------------------------------------------
客户端问题