Websocket plugin for Hoocron
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file hoocron_plugin_websocket-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hoocron_plugin_websocket-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7f98fb6bf745955c14e07e325526c5d8ab915c2ec2450cfd39e6cf7bb9495c |
|
MD5 | 68b21b24ecfddab3d4b3cf11e0cb6e6f |
|
BLAKE2b-256 | edaef0b28411f0de38f73701632687638c322d08121119cb5bc5b9c404ffb5a5 |