{"id":18770042,"url":"https://github.com/yaroslaff/hoocron-plugin-websocket","last_synced_at":"2025-12-10T21:30:15.282Z","repository":{"id":57437514,"uuid":"452693871","full_name":"yaroslaff/hoocron-plugin-websocket","owner":"yaroslaff","description":"Websocket client plugin for Hoocron","archived":false,"fork":false,"pushed_at":"2022-01-27T22:10:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T16:05:36.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaroslaff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-27T13:29:53.000Z","updated_at":"2022-01-27T22:10:54.000Z","dependencies_parsed_at":"2022-09-14T04:50:42.573Z","dependency_job_id":null,"html_url":"https://github.com/yaroslaff/hoocron-plugin-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fhoocron-plugin-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fhoocron-plugin-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fhoocron-plugin-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fhoocron-plugin-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/hoocron-plugin-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239671421,"owners_count":19677875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:17:54.011Z","updated_at":"2025-12-10T21:30:15.201Z","avatar_url":"https://github.com/yaroslaff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hoocron-plugin-websocket\nWebsocket client plugin for Hoocron\n\n## Install\n~~~\npip3 install hoocron-plugin-websocket\n~~~ \n\n## Usage\n~~~\n$ hoocron.py --ws TICK --wsroom myapps::u1 --wsurl http://localhost:8899/ --wssecret myapps-pass\n...\nstarted websocket thread, watch room 'myapps::u1' on http://localhost:8899/\nWebsocket connected to http://localhost:8899/\n\nrun TICK from websocket\nTick! (uptime: 6 seconds)\nResult(TICK): ticked\n~~~\n\n## Server-side\n### Redis\n`SET ws-emit::secret::myapps myapps-pass`\n\n### ws-emit\n`ws-emit.py -a 0.0.0.0:8899 --cors '*' --secret 123`\n\n### curl\n`curl -d @/tmp/x.json -H \"Content-Type: application/json\" -X POST http://localhost:8899/emit`\n\n/tmp/x.json:\n~~~\n{\n\t\"event\": \"update\",\n\t\"room\": \"myapps::u1\",\n\t\"data\": \"TICK\",\n\t\"namespace\": null,\n\t\"secret\": \"123\"\n}\n~~~\n\n# See also\n- [hoocron: cron with hooks](https://github.com/yaroslaff/hoocron) \n- [ws-emit: emit websocket messages from any source, even from CLI with curl](https://github.com/yaroslaff/ws-emit)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fhoocron-plugin-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Fhoocron-plugin-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fhoocron-plugin-websocket/lists"}