Skip to content

@vowel.to/client v0.3.3-beta


@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

ParameterTypeDefault valueDescription
channelNamestring'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');