{"id":19049991,"url":"https://github.com/everlag/easy-pubsub","last_synced_at":"2025-08-02T15:32:39.123Z","repository":{"id":78566753,"uuid":"276995525","full_name":"Everlag/easy-pubsub","owner":"Everlag","description":"A toy pubsub server/client using websockets","archived":false,"fork":false,"pushed_at":"2020-07-03T22:21:16.000Z","size":221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-17T09:56:58.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Everlag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-03T22:12:10.000Z","updated_at":"2024-06-19T08:01:59.754Z","dependencies_parsed_at":"2023-05-12T03:30:53.654Z","dependency_job_id":null,"html_url":"https://github.com/Everlag/easy-pubsub","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/Everlag/easy-pubsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Feasy-pubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Feasy-pubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Feasy-pubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Feasy-pubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Everlag","download_url":"https://codeload.github.com/Everlag/easy-pubsub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Feasy-pubsub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268410560,"owners_count":24246025,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08T23:12:31.128Z","updated_at":"2025-08-02T15:32:39.068Z","avatar_url":"https://github.com/Everlag.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy-pubsub\n\neasy-pubsub is a toy implementation of a pubsub server.\n\nA subscription client is provided to give a complete example.\n\nThe minimum version to run this is go 1.13 for access to the\nnew error handling tools.\n\n## Testing Manually\n\nAn automatic test is icnluded that uses the standard go testing flow.\nHowever, it can be more satisfying to poke at something with curl, so\nthese examples are provided.\n\n1. Start the server\n```\ngo build \u0026\u0026 ./easy-pubsub\n```\n\n2. Subscribe to events using curl(it may timeout without traffic)\n```\ncurl --include \\\n     --no-buffer \\\n     --header \"Connection: Upgrade\" \\\n\t --header \"Upgrade: websocket\" \\\n\t --header \"Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==\" \\\n\t --header \"Sec-WebSocket-Version: 13\" \\\n     http://localhost:8080/subscribe\n```\n(curl sourced from github, I haven't played with websockets in awhile)\nhttps://gist.github.com/htp/fbce19069187ec1cc486b594104f01d0\n\n3. Publish data(content is base64 encoded)\n```\ncurl -X POST localhost:8080/publish --data '{\"content\":\"Zm9vCg==\"}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlag%2Feasy-pubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverlag%2Feasy-pubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlag%2Feasy-pubsub/lists"}