node-signal-client
This is a client library for Signal, the secure messenger app by Open Whisper Systems.
It works by means of a dirty port of the Signal Chrome App to Node.js. This is cloned by npm
during npm install
. Despite being designed for Chrome, the environment is appropriately patched to allow the program to run in Node.js, unhindered.
Warning
When you require
this library, a bunch of things happen on the global scope! In order to port the Chrome app, this had to be done -- just be aware of this in case your application also deals with globals. If so, you'll probably want to communicate with it through IPC or something instead of require
ing it directly.
install
npm install signal-client
Try it out by executing node run.js
usage
The following is copied from the example run.js
const SignalClient = ; const client = "nodejs"; // triggered when you receive a message on signalclient; // triggered when a sent message synced from another clientclient; client; client; client; client; client; clientstart;
storage
The client stores keys and other information in two places.
Two sqlite databases, and a data/ directory are created in the current working directory.