Passer au contenu

@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.