Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find highest value
<?php max(mixed $value, mixed ...$values): mixed
<?php         $margin = 1000;

        $timeoutDelayInMs = max(1000, $context->getRemainingTimeInMillis() - $margin);



        try {

            $socketId = $this->client->sendAsyncRequest($this->connection, $request);