|
|
@@ -39,11 +39,11 @@ $gateway->registerAddress = '127.0.0.1:1238';
|
|
|
// 心跳间隔
|
|
|
$gateway->pingInterval = 5;
|
|
|
$gateway->pingNotResponseLimit = 2;
|
|
|
+$gateway->pingData = '{"message_type":"ping"}';
|
|
|
+
|
|
|
$tmpPath = isset($_SERVER['TEMP']) ? $_SERVER['TEMP'] : '/tmp';
|
|
|
-Worker::$logFile = $tmpPath . '/workerman.log';
|
|
|
-Worker::$stdoutFile = $tmpPath . '/stdout.log';
|
|
|
-// 心跳数据
|
|
|
-//$gateway->pingData = '{"message_type":"ping"}';
|
|
|
+Worker::$logFile = $tmpPath . '/workerman_' . date("Y-m-d") . '.log';
|
|
|
+Worker::$stdoutFile = $tmpPath . '/stdout_' . date("Y-m-d") . '.log';
|
|
|
|
|
|
|
|
|
// 当客户端连接上来时,设置连接的onWebSocketConnect,即在websocket握手时的回调
|