{"id":15567975,"url":"https://github.com/szunami/client-sdk-csharp","last_synced_at":"2025-10-18T07:15:15.396Z","repository":{"id":62965068,"uuid":"563983509","full_name":"szunami/client-sdk-csharp","owner":"szunami","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-14T15:43:57.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T07:35:13.320Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szunami.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}},"created_at":"2022-11-09T18:41:22.000Z","updated_at":"2022-11-09T18:45:33.000Z","dependencies_parsed_at":"2023-01-22T04:04:30.787Z","dependency_job_id":null,"html_url":"https://github.com/szunami/client-sdk-csharp","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/szunami/client-sdk-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szunami%2Fclient-sdk-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szunami%2Fclient-sdk-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szunami%2Fclient-sdk-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szunami%2Fclient-sdk-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szunami","download_url":"https://codeload.github.com/szunami/client-sdk-csharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szunami%2Fclient-sdk-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279484329,"owners_count":26178147,"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-10-18T02:00:06.492Z","response_time":62,"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-10-02T17:14:01.365Z","updated_at":"2025-10-18T07:15:15.362Z","avatar_url":"https://github.com/szunami.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hathora C# Client  SDK\n\n[![openupm](https://img.shields.io/npm/v/com.hathora.client?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.hathora.client/)\n[![NuGet version (Hathora.ClientSdk)](https://img.shields.io/nuget/v/Hathora.ClientSdk.svg?style=flat-square)](https://www.nuget.org/packages/Hathora.ClientSdk/)\n\n## Installation\n\n### OpenUPM\n\n```bash\nopenupm add com.hathora.client\n```\n\n### Nuget\n```bash\ndotnet add package Hathora.ClientSdk --version 2.0.0\n```\n\n## Usage \n\n```csharp\nstring appId = \"...\";\nHathora.Client client = new Hathora.Client(appId);\nstring token = await client.LoginAnonymous();\nstring roomId = await client.Create(token, new byte[] { });\nClientWebSocket webSocket = await client.Connect(token, roomId);\nif (webSocket.State == WebSocketState.Open)\n{\n    ArraySegment\u003cbyte\u003e bytesReceived = new ArraySegment\u003cbyte\u003e(new byte[1024]);\n    WebSocketReceiveResult readResult = await webSocket.ReceiveAsync(bytesReceived, CancellationToken.None);\n    await webSocket.SendAsync(Encoding.UTF8.GetBytes(\"{ message: \\\"Hello world\\\" }\"), WebSocketMessageType.Binary, true, CancellationToken.None);\n}\n\n```\n\n## Publishing Instructions\n\n### OpenUPM\n\nUpdate `package.json` version to $VERSION; commit this change.\n```bash\ngit tag $VERSION\ngit push origin $VERSION\n```\nThen openUPM will trigger a build pipeline; see https://openupm.com/packages/com.hathora.client/?subPage=pipelines\n\n### Nuget\n\nUpdate the `client-sdk-csharp.csproj` `Version` property to `$VERSION`.\n```bash\ndotnet pack --configuration Release\nnuget push ./bin/Release/Hathora.ClientSdk.$RELEASE.nupkg -Source https://api.nuget.org/v3/index.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszunami%2Fclient-sdk-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszunami%2Fclient-sdk-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszunami%2Fclient-sdk-csharp/lists"}