Pass EndpointOpts during client creation