
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
plover-websocket-server
Advanced tools
A WebSocket server for exposing Plover events and controlling Plover from an external program.
This plugin is available on GitHub
and PyPI (under the name plover-websocket-server
).
Report all bugs on GitHub.
Download the latest version of Plover for your operating system from the releases page. Only versions 4.0.0.dev8 and higher are supported.
The same method can be used for updating and uninstalling the plugin.
A file named plover_websocket_server_config.json
will be created
inside Plover's configuration directory (same directory as plover.cfg
file).
Example content:
{
"private_key": "eb700b05b84a14b81ea69d5f826fc4ca30310db22f8943b1975fe56043c00771",
"public_key": "3a283210963d849642011731ba048e8d8f2272802902a9ef7de56d0116236801",
"host": "localhost",
"port": 8086,
"remotes": [
{
"pattern": "^https?\\:\\/\\/localhost?(:[0-9]*)?"
}
],
"ssl": {
"cert_path": "/path/to/cert.pem",
"key_path": "/path/to/key.pem"
}
}
All fields are optional. But if you specify either a private or public key you need the opposed matching key also specified. The same pattern applies to the pair of ssl paths.
The default is included in the example above except for the private and public keys and the ssl paths which are just an example.
In the remotes config, either an object with a Regex pattern, or a string are supported. This is important to allow Cross Origin Resource Sharing (CORS) for the specific case where your client runs on a browser.
[!NOTE] This plugin utilises assymetric key encryption to protect the plugin from unauthorised access and is powered by Pynacl.
Received data format: Search for occurrences of queue_message
in plover_websocket_server/manager.py
,
or write an example program
and observe its output.
[!TIP] Use the existing example script
test/client_example.py
to interact with the plugin.
Controlling Plover from other programs:
{"stroke": ["S-"]}
(note that invalid keys are silently dropped),
or {"translation": "abc"}
.If there's some error during the execution, it will be silently ignored and printed on stderr.
If the "force"
key is true
then the command will be executed even when the engine is turned off.
Note that {PLOVER:RESUME}
will have no effect in that case.
Because the Plover inner working is closely tied to the assumption
that strokes can only come from the keyboard, when {PLOVER:RESUME}
(or a command with similar effect,
such as {PLOVER:TOGGLE}
) is sent and the machine is
"Keyboard" then some characters before the cursor will be deleted.
To prevent this, set the "zero_last_stroke_length"
key to true
.
[!WARNING] This should be used very sparingly because it may have unintended effects.
Forked from https://github.com/user202729/plover_websocket_server.
FAQs
A server for exposing Plover engine events and functionality
We found that plover-websocket-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.