src/Leevel/Protocol/Server.php
public function onConnect(SwooleServer $server, int $fd, int $reactorId): void
    {
        $this->log(
            sprintf(
                'Server connect, fd %d, reactorId %d.',
                $fd, $reactorId
            )
        );
    }
public function onConnect(SwooleServer $server, int $fd, int $reactorId): void
    {
        $this->log(
            sprintf(
                'Server connect, fd %d, reactorId %d.',
                $fd, $reactorId
            )
        );
    }
新的连接进入时
每次连接时(相当于每个浏览器第一次打开页面时)执行一次, reload 时连接不会断开, 也就不会再次触发该事件.

@param \Swoole\Server $server
@param int            $fd
@param int            $reactorId

@see https://wiki.swoole.com/wiki/page/49.html