Skip to content

@capgo/capacitor-live-reload

Capacitor plugin to live reload Capacitor apps from a remote Vite dev server.

Capacitor plugin to live reload Capacitor apps from a remote Vite dev server.

  • 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.
MethodDescription
configureServerStore remote dev server settings used for subsequent connections.
connectEstablish a WebSocket connection if one is not already active.
disconnectClose the current WebSocket connection and disable auto reconnect.
getStatusReturns the current connection status.
reloadTrigger a full reload of the Capacitor WebView.
reloadFileReload a single file/module if the runtime supports it (falls back to full reload).
addListenerListen to incoming reload events emitted by the server.
addListenerListen to socket status changes (connected/disconnected).
removeAllListenersRemove all registered listeners.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-live-reload.

Keep going from @capgo/capacitor-live-reload

Section titled “Keep going from @capgo/capacitor-live-reload”

If you are using @capgo/capacitor-live-reload to plan native plugin work, connect it with Using @capgo/capacitor-live-reload for the native capability in Using @capgo/capacitor-live-reload, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.