hoocron-plugin-websocket
Websocket client plugin for Hoocron
Install
pip3 install hoocron-plugin-websocket
Usage
$ hoocron.py --ws TICK --wsroom myapps::u1 --wsurl http://localhost:8899/ --wssecret myapps-pass
...
started websocket thread, watch room 'myapps::u1' on http://localhost:8899/
Websocket connected to http://localhost:8899/
run TICK from websocket
Tick! (uptime: 6 seconds)
Result(TICK): ticked
Server-side
Redis
SET ws-emit::secret::myapps myapps-pass
ws-emit
ws-emit.py -a 0.0.0.0:8899 --cors '*' --secret 123
curl
curl -d @/tmp/x.json -H "Content-Type: application/json" -X POST http://localhost:8899/emit
/tmp/x.json:
{
"event": "update",
"room": "myapps::u1",
"data": "TICK",
"namespace": null,
"secret": "123"
}
See also
Metadata
Release files for hoocron-plugin-websocket 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hoocron_plugin_websocket-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / hoocron_plugin_websocket-0.0.1-py3-none-any.whl
| Download URL | hoocron_plugin_websocket-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e7f98fb6bf745955c14e07e325526c5d8ab915c2ec2450cfd39e6cf7bb9495c
|
|
BLAKE2b-256 checksum How to use checksums |
edaef0b28411f0de38f73701632687638c322d08121119cb5bc5b9c404ffb5a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
|
Security for hoocron-plugin-websocket 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.