Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bluetooth-rpc-client
Advanced tools
The client side of a library allowing Remove Procedure Call (RPC) from a web application to a Node.js server on a Bluetooth-enabled device.
The client side of a library allowing Remove Procedure Call (RPC) from a web application to a Node.js server on a Bluetooth-enabled device.
To install, simply run:
npm install bluetooth-rpc-client
This library is designed to be used with bluetooth-rpc-server This library requires a browser which supports Web Bluetooth
import * as BluetoothRPCClient from 'bluetooth-rpc-client';
const serviceUuid = '...this is defined on the server...';
const characteristicUuid = '...this is defined on the server...';
BluetoothRPCClient.connect({ serviceUuid, characteristicUuid });
.then(device => device.doSomething(1, 2, 3)) // doSomething(x, y, z) is an async function defined on the server
.then(returnValue => {
// ... do something with the return value here ...
});
Upon calling BluetoothRPCClient.connect()
, the user will be presented with
a dialog to select the device they wish to connect to. If your server is
running, you will see the device name you defined in the list. If everything
goes well, the Promise will resolve with a device
object, which you can use
to call methods corresponding to the handlers
defined on the server.
Note: all of these handlers will return a Promise, regardless of whether they were defined as async functions on the server.
FAQs
The client side of a library allowing Remove Procedure Call (RPC) from a web application to a Node.js server on a Bluetooth-enabled device.
The npm package bluetooth-rpc-client receives a total of 8 weekly downloads. As such, bluetooth-rpc-client popularity was classified as not popular.
We found that bluetooth-rpc-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.