WebSocketServer.php
function onOpen(ConnectionInterface $conn)
    {
        $this->trigger(self::EVENT_CLIENT_CONNECTED, new WSClientEvent([
            'client' => $conn
        ]));

        $this->clients->attach($conn);
    }
function onOpen(ConnectionInterface $conn)
    {
        $this->trigger(self::EVENT_CLIENT_CONNECTED, new WSClientEvent([
            'client' => $conn
        ]));

        $this->clients->attach($conn);
    }
@param ConnectionInterface $conn

@event WSClientEvent EVENT_CLIENT_CONNECTED