* * @throws ConnectException * @throws CancelledException */ public function connect(string $uri, ?ConnectContext $context = null, ?CancellationToken $token = null) : Promise; }