{"id":20924373,"url":"https://github.com/insthync/ngorequestresponse","last_synced_at":"2026-04-21T08:02:55.805Z","repository":{"id":80411258,"uuid":"576095246","full_name":"insthync/NGORequestResponse","owner":"insthync","description":"A Request and response addon for Unity's Netcode for Game Object","archived":false,"fork":false,"pushed_at":"2022-12-09T02:27:17.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T20:14:08.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/insthync.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-09T02:00:11.000Z","updated_at":"2024-04-11T05:54:31.000Z","dependencies_parsed_at":"2023-06-07T10:15:12.916Z","dependency_job_id":null,"html_url":"https://github.com/insthync/NGORequestResponse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/insthync/NGORequestResponse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2FNGORequestResponse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2FNGORequestResponse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2FNGORequestResponse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2FNGORequestResponse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insthync","download_url":"https://codeload.github.com/insthync/NGORequestResponse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insthync%2FNGORequestResponse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-18T20:21:27.563Z","updated_at":"2026-04-21T08:02:55.800Z","avatar_url":"https://github.com/insthync.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NGOReqRes\nA Request and response addon for Unity's [Netcode for Game Objects](https://github.com/Unity-Technologies/com.unity.netcode.gameobjects)\n\n## How to use it\n\nAttach `RequestResponseManager` to any game object.\n\nRegister requests by uses functions from `RequestResponseManager` class, example:\n\n```\n// Request Data\nusing Unity.Netcode;\n\npublic struct TestReq : INetworkSerializable\n{\n    public int a;\n    public int b;\n\n    public void NetworkSerialize\u003cT\u003e(BufferSerializer\u003cT\u003e serializer) where T : IReaderWriter\n    {\n        serializer.SerializeValue(ref a);\n        serializer.SerializeValue(ref b);\n    }\n}\n\n// Response Data\nusing Unity.Netcode;\n\npublic struct TestRes : INetworkSerializable\n{\n    public int c;\n\n    public void NetworkSerialize\u003cT\u003e(BufferSerializer\u003cT\u003e serializer) where T : IReaderWriter\n    {\n        serializer.SerializeValue(ref c);\n    }\n}\n\n// Register class, attach this to the same game object with `RequestResponseManager`\nusing Unity.Netcode.Insthync.ResquestResponse;\nusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class TestRequestResponse : MonoBehaviour\n{\n    public RequestResponseManager reqResMgr;\n\n    public int a = 0;\n    public int b = 0;\n    public bool sendUpdate;\n\n    private void Start()\n    {\n        reqResMgr.RegisterRequestToServer\u003cTestReq, TestRes\u003e(1, RequestHandler, ResponseHandler);\n    }\n\n    public void Update()\n    {\n        if (sendUpdate)\n        {\n            sendUpdate = false;\n            reqResMgr.ClientSendRequest(1, new TestReq()\n            {\n                a = a,\n                b = b,\n            });\n        }\n    }\n\n    void RequestHandler(RequestHandlerData requestHandler, TestReq request, RequestProceedResultDelegate\u003cTestRes\u003e result)\n    {\n        Debug.Log(\"Request: \" + request.a + \", \" + request.b);\n        result.Invoke(AckResponseCode.Success, new TestRes()\n        {\n            c = request.a + request.b\n        });\n    }\n\n    void ResponseHandler(ResponseHandlerData requestHandler, AckResponseCode responseCode, TestRes response)\n    {\n        Debug.Log(\"Response: \" + responseCode + \" = \" + response.c);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsthync%2Fngorequestresponse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsthync%2Fngorequestresponse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsthync%2Fngorequestresponse/lists"}