This commit is contained in:
2026-05-28 20:19:28 +08:00
commit 070fad058f
124 changed files with 22713 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace LayLink\Node;
use Workerman\Connection\TcpConnection;
final class NodeConnection
{
public int $lastHeartbeat;
public int $activeSessions = 0;
public function __construct(
public readonly string $nodeId,
public readonly string $nodeType,
public readonly string $nodeZone,
public readonly TcpConnection $connection,
) {
$this->lastHeartbeat = time();
}
}