Server → Client Actions

The backend can call named actions on mounted Svelte components in the browser, over ActionCable (WebSocket).

SvelteOnRails::Frontend.call('components/ProductCard', :refresh, { product_id: 123 })

See Backend-triggered frontend actions for installation and usage.