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-comm-server
Advanced tools
- [ToDesktop Communication Server](#todesktop-client-comm-server) - [Installation](#installation) - [Usage](#usage) - [Architecture](#architecture) - [Development](#development)
This is the repo for the ToDesktop Communication Server client.
This is a package for interacting with @todesktop/plugin-comm-server. This package exposes a set of functions for communicating between windows.
Install @todesktop/client-comm-server
in your client-side application using
$ npm install @todesktop/client-comm-server
Installation of the plugin package is also necessary.
Checks to see if the communication server is currently running. This should be executed from the context of the web app attempting communication with a local desktop app.
import { checkIfCommServerRunning } from "@todesktop/client-comm-server";
const ports = [20001, 39214];
checkIfCommServerRunning(ports).then(async (isRunning) => {
console.log(isRunning); // true
});
Broadcasts a message to the running desktop app.
import { broadcast } from "@todesktop/client-comm-server";
const ports = [20001, 39214];
const res = await broadcast(ports, { foo: "bar" });
console.log(res);
Listens to messages that have been forwarded from the communication server.
import { handleBroadcast } from "@todesktop/client-comm-server";
const unsubscribe = handleBroadcast((data) => {
console.log(data);
return "acknowledged";
});
// ...later
unsubscribe();
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-comm-server
's index.ts
file.Refer to the root repo for development instructions.
FAQs
Communicate between the web browser and your desktop app.
The npm package @todesktop/client-comm-server receives a total of 0 weekly downloads. As such, @todesktop/client-comm-server popularity was classified as not popular.
We found that @todesktop/client-comm-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.