{"id":32603935,"url":"https://github.com/dimesoftware/websockets","last_synced_at":"2026-04-18T10:33:31.706Z","repository":{"id":152118276,"uuid":"260308345","full_name":"dimesoftware/websockets","owner":"dimesoftware","description":"🛰️ Stay on top of SignalR connections with connection trackers","archived":false,"fork":false,"pushed_at":"2025-11-23T15:40:29.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-12T01:44:41.379Z","etag":null,"topics":["csharp","dotnet","signalr","websockets"],"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/dimesoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-04-30T20:10:57.000Z","updated_at":"2025-11-23T15:40:12.000Z","dependencies_parsed_at":"2024-10-20T22:08:02.028Z","dependency_job_id":null,"html_url":"https://github.com/dimesoftware/websockets","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dimesoftware/websockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimesoftware%2Fwebsockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimesoftware%2Fwebsockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimesoftware%2Fwebsockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimesoftware%2Fwebsockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimesoftware","download_url":"https://codeload.github.com/dimesoftware/websockets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimesoftware%2Fwebsockets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31965926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["csharp","dotnet","signalr","websockets"],"created_at":"2025-10-30T09:24:28.301Z","updated_at":"2026-04-18T10:33:31.687Z","avatar_url":"https://github.com/dimesoftware.png","language":"C#","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"assets/collab.svg?raw=true\" width=\"350\" alt=\"Logo\"\u003e\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eWebSockets\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://dev.azure.com/dimesoftware/Utilities/_apis/build/status/dimenics.websockets?branchName=master)](https://dev.azure.com/dimesoftware/Utilities/_build/latest?definitionId=176\u0026branchName=master) ![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/dimesoftware/utilities/176)\n\u003c/div\u003e\n\nThis is a lightweight project that can be used to keep track of SignalR connections. This is useful in multi-tenant instances where you don't want to broadcast data to other tenants. It hooks into SignalR and allows you to overwrite the default workflow.\n\n## Getting Started\n\n- You must have Visual Studio 2019 Community or higher.\n- The dotnet cli is also highly recommended.\n\n## About this project\n\nThis project provides a simple interface and a few implementations for that interface. This makes it configurable and easy to setup in the startup of the application. For example, it requires only 1 line of code to swap an in-memory connection tracker with a SQL connection tracker.\n\n## Installation\n\n\u003e 🚧 Warning: the packages are not available yet on NuGet.\n\nUse the package manager NuGet to install the base library:\n\n`dotnet add package Dime.WebSockets`\n\nNext it is up to you to decide which _persistence medium_ you want to use:\n\n| Service         | Command                                       |\n| --------------- | --------------------------------------------- |\n| In memory cache | `dotnet add package Dime.WebSockets.InMemory` |\n| Sql             | `dotnet add package Dime.WebSockets.Sql`      |\n| Redis           | `dotnet add package Dime.WebSockets.Redis`    |\n\n## Usage\n\nWhen a user connects, the connection can be stored in the connection tracker's storage medium. This data can be retrieved when the hub broadcasts data to the clients.\n\n```csharp\npublic class MyHub : Hub\n{\n    private readonly IConnectionTracker\u003cConnection\u003e _connectionTracker;\n\n    public MyHub(IConnectionTracker\u003cConnection\u003e connectionTracker)\n    {\n        _connectionTracker = connectionTracker;\n    }\n\n    public override async Task OnConnected()\n    {\n      await this.ConnectionTracker.AddAsync(new Connection(){ ConnectionId = Context.ConnectionId });\n    }\n}\n```\n\n## Contributing\n\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)\n\nPull requests are welcome. Please check out the contribution and code of conduct guidelines.\n\n## License\n\n![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimesoftware%2Fwebsockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimesoftware%2Fwebsockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimesoftware%2Fwebsockets/lists"}