Configinterface
Optional configuration object for initializing the io.Connect library.
Properties (19)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| application⚓︎ | string | x | x | Application name. If not specified, the value depends on the hosting environment.
For the browser - |
| appManager⚓︎ | boolean | Mode | "startOnly" | x | Initializes or disables the App Management API. You can also specify mode in which that App Management API will be initialized. |
| apps⚓︎ | boolean | false | x | Initializes or disables the Apps API. |
| auth⚓︎ | Auth | string | x | x | Authentication can use one of the following flows:
|
| bus⚓︎ | boolean | x | x | Enable or disable the Pub/Sub API. |
| channels⚓︎ | boolean | Configuration | false | x | Initializes or disables the Channels API. |
| contexts⚓︎ | boolean | ContextsConfig | x | x | Enable, disable and configure the Contexts API. |
| customLogger⚓︎ | CustomLogger | x | x | Pass this to override the build-in logger and handle logging on your own |
| displays⚓︎ | boolean | true | x | Initializes or disables the Displays API. |
| exposeAPI⚓︎ | boolean | true | x | Determines whether io.Connect will share the initialized API object upon request via a custom web event. |
| gateway⚓︎ | GatewayConfig | x | x | Configurations for the io.Connect Gateway connection. |
| identity⚓︎ | { [key: string]: string | number | boolean } | x | x | Specify custom identity fields. Those can also override some of the system fields assigned |
| insights⚓︎ | boolean | Settings | x | x | io.Insights settings for metrics, tracing and logging. |
| intents⚓︎ | Config | x | x | Configuration for the Intents Resolver UI. |
| layouts⚓︎ | boolean | Mode | Configuration | "slim" | x | Initializes or disables the Layouts API. You can also specify mode and configuration with which that Layouts API will be initialized. |
| libraries⚓︎ | ((io: API, config?: Config) => Promise<void>)[] | x | x | A list of io.Connect factory functions that will be initialized internally to provide access to specific functionalities. |
| logger⚓︎ | LogLevel | LoggerConfig | x | x | Defines logging levels per output target. |
| metrics⚓︎ | boolean | MetricsConfig | x | x | Metrics configurations. |
| windows⚓︎ | boolean | true | x | Initializes or disables the Window Management API. |