@vowel.to/client / index / createControlledAutomationListener
Function: createControlledAutomationListener()
ts
function createControlledAutomationListener(channelName): () => void;Defined in: lib/vowel/adapters/automation/controlled-automation-adapter.ts:380
Create listener for controlled tab
Call this in the controlled tab to receive and execute automation commands.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
channelName | string | 'vowel-automation' | BroadcastChannel name (must match adapter) |
Returns
ts
(): void;Returns
void
Example
ts
// In controlled tab (e.g., Shopify theme)
import { createControlledAutomationListener } from '@vowel.to/client/adapters/automation';
createControlledAutomationListener('vowel-automation');