clientConfig (gateway.config.ts)

lumiere · realtime

Defines gateway client configuration for protocol agents, client resolution, and realtime settings, enabling dynamic per-client setup.

// Source: https://github.com/ajamaica/lumiere | License: MIT | Copyright 2026 ajamaica
// Provided via justclaw.it.com; keep this notice with the code.
import { Platform } from 'react-native'

import { DEFAULT_SESSION_KEY } from '../constants'

/** Resolve the gateway-recognised client ID for this platform. */
function resolveClientId(): string {
  switch (Platform.OS) {
    case 'ios':
      return 'openclaw-ios'
    case 'android':
      return 'openclaw-android'
    default:
      return 'webchat'
  }
}

export const clientConfig = {
  id: resolveClientId(),
  mode: 'webchat' as const,
  version: '1.2.0',
  platform: Platform.OS,
}

export const protocolConfig = {
  minProtocol: 3,
  maxProtocol: 3,
} as const

export const agentConfig = {
  defaultAgentId: 'main',
  defaultSessionKey:

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key