Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@todesktop/client-ipc
Advanced tools
Communicating between desktop app windows.
Install @todesktop/client-ipc
in your client-side application using
npm install @todesktop/client-ipc
Installation of the plugin package is also necessary. Using ToDesktop Builder, navigate to Plugins. Click on the Explore button for "Selected Text" and install the package.
subscribe
Subscribes to a messaging channel and executes a callback when that message is triggered. The callback contains the data
and context
information from the sender.
You can also unsubscribe
from a messaging channel by executing the function that is returned from the initial subscribe
call.
import { subscribe } from "@todesktop/client-ipc";
const unsubscribe = subscribe("foo", (data, context) => {
console.log({ data, context });
/**
* {
* data: { msg: "bar" },
* context: { windowId: 2, viewId: 2 }
* }
*/
});
// ...later
unsubscribe();
publish
Publishes data to a messaging channel.
import { publish } from "@todesktop/client-ipc";
publish("foo", { msg: "bar" });
identify
Retrieves id information about the window and view.
import { identify } from "@todesktop/client-ipc";
async () => {
console.log(await identify());
/**
* {
* windowId: 1,
* viewId: 1
* }
*/
};
FAQs
Communicating between desktop app windows.
The npm package @todesktop/client-ipc receives a total of 104 weekly downloads. As such, @todesktop/client-ipc popularity was classified as not popular.
We found that @todesktop/client-ipc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.