@reactor/client — createclient
@reactor/client / createClient
Function: createClient()
Section titled “Function: createClient()”createClient<
Schema>(url,options?):ReactorClient<Schema>
Defined in: index.ts:108
Create a Reactor client.
Type Parameters
Section titled “Type Parameters”Schema
Section titled “Schema”Schema extends GenericSchema = GenericSchema
Parameters
Section titled “Parameters”string
The Reactor API URL (e.g., ‘https://reactor.cloud’)
options?
Section titled “options?”ReactorClientOptions = {}
Client configuration options
Returns
Section titled “Returns”ReactorClient<Schema>
A configured Reactor client
Example
Section titled “Example”import { createClient } from '@reactor/client';
const reactor = createClient('https://reactor.cloud', { key: 'rk_pub_...',});