@capgo/capacitor-live-reload
Capacitor plugin to live reload Capacitor apps from a remote Vite dev server.
Overview
Section titled “Overview”Capacitor plugin to live reload Capacitor apps from a remote Vite dev server.
Core Capabilities
Section titled “Core Capabilities”configureServer- Store remote dev server settings used for subsequent connections.connect- Establish a WebSocket connection if one is not already active.disconnect- Close the current WebSocket connection and disable auto reconnect.getStatus- Returns the current connection status.
Public API
Section titled “Public API”| Method | Description |
|---|---|
configureServer | Store remote dev server settings used for subsequent connections. |
connect | Establish a WebSocket connection if one is not already active. |
disconnect | Close the current WebSocket connection and disable auto reconnect. |
getStatus | Returns the current connection status. |
reload | Trigger a full reload of the Capacitor WebView. |
reloadFile | Reload a single file/module if the runtime supports it (falls back to full reload). |
addListener | Listen to incoming reload events emitted by the server. |
addListener | Listen to socket status changes (connected/disconnected). |
removeAllListeners | Remove all registered listeners. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-live-reload.