![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@todesktop/client-ipc
Advanced tools
- [ToDesktop Client IPC](#todesktop-client-ipc) - [Installation](#installation) - [Usage](#usage) - [Architecture](#architecture) - [Development](#development)
This is the repo for the ToDesktop IPC client.
This is a zero-dependency package for interacting with @todesktop/plugin-ipc. This package exposes a set of functions for communicating between windows.
Install @todesktop/client-ipc
in your client-side application using
$ npm install @todesktop/client-ipc
Installation of the plugin package is also necessary.
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();
Publishes data to a messaging channel.
import { publish } from "@todesktop/client-ipc";
publish("foo", { msg: "bar" });
Retrieves id information about the window and view.
import { identify } from "@todesktop/client-ipc";
(async () => {
console.log(await identify())
/**
* {
* windowId: 1,
* viewId: 1
* }
*/
})
This package requires the following files:
src/index.ts
: exposes plugin functionality through strongly-typed, easy-to-use functions.src/generated/plugin.d.ts
: automatically generated types from @todesktop/plugin-ipc
's index.ts
file.Refer to the root repo for development instructions.
FAQs
Communicating between desktop app windows.
The npm package @todesktop/client-ipc receives a total of 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.