@synra/capacitor-lan-discovery
v0.0.7
Published
Capacitor plugin for LAN device discovery.
Readme
@synra/capacitor-lan-discovery
Capacitor plugin for LAN device discovery.
Install
To use npm
npm install @synra/capacitor-lan-discoveryTo use yarn
yarn add @synra/capacitor-lan-discoverySync native files
npx cap syncPlatform support
| Capability | iOS | Android | Web | Electron |
| ----------------------------------------------------------- | --- | -------------------------- | ------- | -------- |
| startDiscovery / stopDiscovery / getDiscoveredDevices | Yes | Yes | Mocked | Yes |
| scanStateChanged | Yes | Yes | Partial | Partial |
| deviceConnectableUpdated | Yes | Yes | Partial | Partial |
| deviceFound / deviceUpdated / deviceLost | No | Yes (compatibility events) | Partial | Partial |
Notes
hybridwithenableProbeFallbacktrue (default) unions mDNS + UDP discovery candidates before TCP probe. WithenableProbeFallbackfalse, UDP discovery is not run inhybrid(mDNS + manual targets only).deviceFound,deviceUpdated, anddeviceLostare currently Android-compatible events and should not be treated as cross-platform guarantees.scanWindowMsandstartedAtcan be returned by native platforms in discovery result payloads.- This package is discovery-only. Transport opening, messaging, and pairing are handled by
@synra/capacitor-device-connectionand upper runtime modules.
