
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@wisdomgarden/capacitor-plugin-beacon
Advanced tools
Capacitor plugin for Bluetooth beacon broadcasting and monitoring
A Capacitor plugin for Bluetooth beacon functionality.
npm install @wisdomgarden/capacitor-plugin-beacon
npx cap sync
Initialize the beacon plugin.
await Beacon.initialize({ allowDuplicatesKey: true });
Start broadcasting as a beacon. You can either provide a complete message or individual components.
await Beacon.startBroadcasting({
rollcallId: 123,
nonce: "ZABC"
});
Stop broadcasting as a beacon.
await Beacon.stopBroadcasting();
Start monitoring for nearby beacons.
await Beacon.startMonitoring();
Stop monitoring for nearby beacons.
await Beacon.stopMonitoring();
Clean up all beacon-related resources.
await Beacon.cleanup();
Parse a beacon message into its components.
const result = await Beacon.parseMessage({ message: "xxxxxx" });
// Returns: { rollcallId: number, nonce: string }
Emitted when a beacon is discovered.
Beacon.addListener('beaconReceived', (data) => {
console.log('Received beacon:', data);
// data: { message: string, rssi: number, peripheralId: string, timestamp: number }
});
Emitted when the peripheral state changes.
Beacon.addListener('stateUpdated', (data) => {
console.log('State updated:', data);
// data: { type: 'peripheral', state: 'poweredOn' | 'poweredOff' | 'unauthorized' | 'unsupported' | number }
});
Emitted when there's an error with the beacon state.
Beacon.addListener('stateError', (data) => {
console.log('State error:', data);
// data: { type: 'peripheral' | 'central', state: string }
});
Emitted when the Bluetooth state changes.
Beacon.addListener('bluetoothStateChanged', (data) => {
console.log('Bluetooth state changed:', data);
// data: { enabled: boolean, error?: string }
});
NSBluetoothAlwaysUsageDescription
and NSBluetoothPeripheralUsageDescription
in Info.plistBLUETOOTH
, BLUETOOTH_ADMIN
, BLUETOOTH_SCAN
, BLUETOOTH_CONNECT
, and BLUETOOTH_ADVERTISE
permissionsApache-2.0
FAQs
Capacitor plugin for Bluetooth beacon broadcasting and monitoring
We found that @wisdomgarden/capacitor-plugin-beacon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.