Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@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 60 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.