{"id":14963790,"url":"https://github.com/ahmkam/unity-simple-message-broker","last_synced_at":"2026-03-12T14:43:00.847Z","repository":{"id":140240809,"uuid":"310366581","full_name":"ahmkam/unity-simple-message-broker","owner":"ahmkam","description":"A simple message broker for C# and Unity","archived":false,"fork":false,"pushed_at":"2020-11-18T22:32:09.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T09:53:37.485Z","etag":null,"topics":["csharp","message-broker","pub-sub","publisher-subscriber","publisher-subscriber-pattern","unity","unity-plugin"],"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/ahmkam.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-11-05T17:07:19.000Z","updated_at":"2020-11-18T22:32:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2c0cc67-0df7-4842-813a-9ebb09f150eb","html_url":"https://github.com/ahmkam/unity-simple-message-broker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ahmkam/unity-simple-message-broker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmkam%2Funity-simple-message-broker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmkam%2Funity-simple-message-broker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmkam%2Funity-simple-message-broker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmkam%2Funity-simple-message-broker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmkam","download_url":"https://codeload.github.com/ahmkam/unity-simple-message-broker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmkam%2Funity-simple-message-broker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30428667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","message-broker","pub-sub","publisher-subscriber","publisher-subscriber-pattern","unity","unity-plugin"],"created_at":"2024-09-24T13:32:09.071Z","updated_at":"2026-03-12T14:43:00.831Z","avatar_url":"https://github.com/ahmkam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Message Broker\n\nA simple message broker for C# and Unity inspired by UniRx message broker\n\n### Usage\nCopy the Plugins/SimpleMessageBroker folder into your project or download the latest [unity package](https://github.com/ahmkam/unity-simple-message-broker/releases/download/2.0/UnitySimpleMessageBroker-v2.0.unitypackage) from releases\n\n\u003cbr /\u003e\n\nSending / receiving empty message\n```csharp\n// Your function\npublic void Foo() =\u003e Debug.Log(\"Foo\");\n\n// Subscribe message\nSimpleMessageBroker.Subscribe(\"foo_id\", Foo);\n\n// Publish message\nSimpleMessageBroker.Publish(\"foo_id\");\n\n// Unsubscribe message\nSimpleMessageBroker.Unsubscribe(\"foo_id\", Foo);\n```\n\nSending / receiving with a message class. An ID can be given if you want to filter messages of the same class\n\n```csharp\n// Message class\npublic class FooArgs\n{\n    public string value;\n}\n\n// Your function\npublic void FooWithMessage(FooArgs arg) =\u003e Debug.Log(arg.value);\n\n// Subscribe message\nSimpleMessageBroker.Subscribe\u003cFooArgs\u003e(\"foo_id\", FooWithMessage);\n\n// Publish\nSimpleMessageBroker.Publish\u003cFooArgs\u003e(\"foo_id\", new FooArgs() { value = \"hello world\" });\n\n// Unsubscribe\nSimpleMessageBroker.Unsubscribe\u003cFooArgs\u003e(\"foo_id\", FooWithMessage);\n```\n\n-------------\n### Todo\n- ~~Filtering messages belonging to the same message class~~\n- Utility methods\n- Error checking","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmkam%2Funity-simple-message-broker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmkam%2Funity-simple-message-broker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmkam%2Funity-simple-message-broker/lists"}