{"id":16906656,"url":"https://github.com/rsms/cometps","last_synced_at":"2025-04-11T15:27:21.228Z","repository":{"id":655690,"uuid":"298373","full_name":"rsms/cometps","owner":"rsms","description":"Simple comet pub/sub","archived":false,"fork":false,"pushed_at":"2009-10-08T00:14:49.000Z","size":100,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T12:41:46.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/rsms.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":"2009-09-05T11:51:55.000Z","updated_at":"2018-05-12T21:30:19.000Z","dependencies_parsed_at":"2022-07-09T08:16:07.435Z","dependency_job_id":null,"html_url":"https://github.com/rsms/cometps","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/rsms%2Fcometps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fcometps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fcometps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fcometps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/cometps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248430118,"owners_count":21101954,"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-10-13T18:43:47.459Z","updated_at":"2025-04-11T15:27:21.201Z","avatar_url":"https://github.com/rsms.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cometpsd\n\nSimple comet pub/sub server with an optional shared secret for controlling publish rights.\n\nOpen source licensed under MIT, by [Rasmus Andersson](http://hunch.se/).\n\n\n## Example\n\nStart a server in a terminal:\n\n\t$ cometpsd -k xyz\n\nOpen [http://localhost:8080/channel/default](http://localhost:8080/channel/default) in your web browser.\n\nIn another terminal, use curl to publish something:\n\n\t$ curl -i -X POST -H 'X-CPS-Publish-Key: xyz' \\\n\t  --data-binary '\u003cp\u003ehello\u003c/p\u003e' localhost:8080/channel/default\n\n\"hello\" should appear in your browser when you run the command above. Open more tabs with  [http://localhost:8080/channel/default](http://localhost:8080/channel/default) \nand run the curl command a few more times.\n\n\n## Configuration file\n\nThe server can be configured by a YAML file (passing filename, or \"-\" for stdin, with `-f` flag)\nwhich can describe multiple servers, which in turn each can describe multiple channels.\n\nParameters like `address`, `port` and `log_level` are hierarchical\n-- i.e. specifying `log_level 3` for a server will implicitly set `log_level 3` for all \nits channels which do not themselves set `log_level`.\n\n### Example\n\n\tservers:\n\t  - address: \"0.0.0.0\" # ANY\n\t    port: 8080\n\t    channels:\n\t      test:\n\t        publish_key: xyz\n\t        log_level: 3\n\t      test2:\n\t        max_clients: 3\n  \n\t  - port: 8081\n\t    log_level: 2\n\t    channels: {a: {publish_key: xyz}, b: {}}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fcometps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fcometps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fcometps/lists"}