An Adapter connects a running app to a Stage. It handles authentication, message delivery, and reconnection. Your app still needs its own logic to send messages and react to the ones it receives.
If youโre using an AI coding tool, start with the Connect Omni Adapter AI guide. Your AI tool can use the guide to choose and install the appropriate Adapter package for your project.
For manual setup, choose your projectโs language and install the corresponding package below.
These packages are added to your own project, not imported into Connect Omni. Installation requirements and supported features may vary by language and release.
For installation instructions, API usage, and examples, refer to the package documentation:
To display a Unity WebGL build directly on the Stage, see Showing Apps on the Stage โ Unity Layer. To connect a Unity application through the C# Adapter, use the installation instructions above.
An Adapter Key to connect to a Stage. Store it securely, such as in an environment variable (CONNECT_TOKEN) or secret manager.
An Adapter Name (displayName) to identify the app in Backstage. Use a distinct name to make connections easier to recognize.
You can also declare the channels your app sends and receives. These appear in Backstage but donโt restrict message delivery by default. To receive only declared channels, enable selective receiving.
Other optional settings cover standby instances, screen broadcast, and reconnection.
Each message has a channel (its name) and a value. For example, the dashboard sends climate.temperature.request = 23 and the simulator replies with climate.temperature = 23.
Values can be strings, numbers, booleans, or null. Send structured data as a JSON string.
Values sent from the Console arrive as strings. Convert them in your app before you use them as numbers.
By default, an app receives messages from the other participants on the Stage. Turn on selective receiving to accept only the channels the app declares, matched exactly.
An app that doesnโt declare channels still connects and exchanges messages. Its Backstage node just shows no channel chips.
The Adapter retries automatically and queues up to 1,000 outgoing messages while itโs offline. Older queued values may arrive after it reconnects.
A Session keeps up to 1,000 recent messages. Apps can use this history to recover the latest known values, but Connect Omni doesnโt automatically restore their state. Past commands arenโt replayed as new actions.
A new Session starts empty. Each app is responsible for restoring and publishing its current state after reconnecting or starting a new Session.
Each program can send up to 60 messages per second. Connect Omni is built for interactive testing, not safety-critical control.
A web app displayed in a Web View Layer exchanges messages through the Layerโs Send and Receive rules, without exposing an Adapter Key in browser code. For setup, see Showing Apps on the Stage โ Web View.
import{connect}from'@studioxid/omni-adapter';constclient = awaitconnect({secretKey:process.env.CONNECT_TOKEN!,displayName:'smart-home-dashboard',sends:['climate.temperature.request'],receives:['climate.temperature'],});// Receive the confirmed temperature.client.on('climate.temperature',(msg)=>{console.log('Confirmed temperature:',msg.value);// Update the dashboard through your app's UI logic.});// Call this from your server-side handler// when the user changes the temperature.exportasyncfunctionrequestTemperature(value: number){awaitclient.send('climate.temperature.request',value);}client.on('error',(err)=>{console.error(`[${err.code}] ${err.hint ?? err.message}`);});for(constsignalof['SIGINT','SIGTERM']asconst){process.once(signal,()=>voidclient.close());}
import{connect}from'@studioxid/omni-adapter';constclient = awaitconnect({secretKey:process.env.CONNECT_TOKEN!,displayName:'smart-home-dashboard',sends:['climate.temperature.request'],receives:['climate.temperature'],});// Receive the confirmed temperature.client.on('climate.temperature',(msg)=>{console.log('Confirmed temperature:',msg.value);// Update the dashboard through your app's UI logic.});// Call this from your server-side handler// when the user changes the temperature.exportasyncfunctionrequestTemperature(value: number){awaitclient.send('climate.temperature.request',value);}client.on('error',(err)=>{console.error(`[${err.code}] ${err.hint ?? err.message}`);});for(constsignalof['SIGINT','SIGTERM']asconst){process.once(signal,()=>voidclient.close());}
import{connect}from'@studioxid/omni-adapter';constclient = awaitconnect({secretKey:process.env.CONNECT_TOKEN!,displayName:'smart-home-dashboard',sends:['climate.temperature.request'],receives:['climate.temperature'],});// Receive the confirmed temperature.client.on('climate.temperature',(msg)=>{console.log('Confirmed temperature:',msg.value);// Update the dashboard through your app's UI logic.});// Call this from your server-side handler// when the user changes the temperature.exportasyncfunctionrequestTemperature(value: number){awaitclient.send('climate.temperature.request',value);}client.on('error',(err)=>{console.error(`[${err.code}] ${err.hint ?? err.message}`);});for(constsignalof['SIGINT','SIGTERM']asconst){process.once(signal,()=>voidclient.close());}
import{connect}from'@studioxid/omni-adapter';constclient = awaitconnect({secretKey:process.env.CONNECT_TOKEN!,displayName:'smart-home-dashboard',sends:['climate.temperature.request'],receives:['climate.temperature'],});// Receive the confirmed temperature.client.on('climate.temperature',(msg)=>{console.log('Confirmed temperature:',msg.value);// Update the dashboard through your app's UI logic.});// Call this from your server-side handler// when the user changes the temperature.exportasyncfunctionrequestTemperature(value: number){awaitclient.send('climate.temperature.request',value);}client.on('error',(err)=>{console.error(`[${err.code}] ${err.hint ?? err.message}`);});for(constsignalof['SIGINT','SIGTERM']asconst){process.once(signal,()=>voidclient.close());}
import{connect}from'@studioxid/omni-adapter';constclient = awaitconnect({secretKey:process.env.CONNECT_TOKEN!,displayName:'smart-home-dashboard',sends:['climate.temperature.request'],receives:['climate.temperature'],});// Receive the confirmed temperature.client.on('climate.temperature',(msg)=>{console.log('Confirmed temperature:',msg.value);// Update the dashboard through your app's UI logic.});// Call this from your server-side handler// when the user changes the temperature.exportasyncfunctionrequestTemperature(value: number){awaitclient.send('climate.temperature.request',value);}client.on('error',(err)=>{console.error(`[${err.code}] ${err.hint ?? err.message}`);});for(constsignalof['SIGINT','SIGTERM']asconst){process.once(signal,()=>voidclient.close());}
This example runs on the dashboardโs Node.js backend. Connect requestTemperature() and the received value to your existing UI logic. Do not expose CONNECT_TOKEN in browser-side code.
For a browser-only dashboard displayed inside a Connect Omni Web View Layer, use the Adapterโs Engine profile instead. See Showing Apps on the Stage.
Run the simulator with CONNECT_TOKEN configured in its environment.
These examples show how to exchange messages with Connect Omni; they do not implement your dashboardโs UI. Connect the send and receive handlers to your appโs controls and display. For additional implementation examples, see the package documentation linked above.
Once both apps are running, changing the dashboardโs temperature should send climate.temperature.request. The simulator processes the request and publishes climate.temperature with the confirmed value.