{"id":51778522,"url":"https://github.com/mmuecke/rxmqttnet","last_synced_at":"2026-07-20T09:01:04.676Z","repository":{"id":37793181,"uuid":"305444443","full_name":"mmuecke/RxMQTTnet","owner":"mmuecke","description":"A extension to the MQTTnet project, to transform the subscriptions into observables and to publish form a observalbe stream.","archived":false,"fork":false,"pushed_at":"2024-09-20T16:10:37.000Z","size":302,"stargazers_count":30,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-05T02:05:49.691Z","etag":null,"topics":["comunication","csharp","iot","mqtt-client","mqtt-protocol","net","netcore","nuget","rx"],"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/mmuecke.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}},"created_at":"2020-10-19T16:21:35.000Z","updated_at":"2025-09-08T11:24:41.000Z","dependencies_parsed_at":"2023-01-29T19:15:42.426Z","dependency_job_id":"2066f1b1-fc81-4585-95d5-3a6e1708244f","html_url":"https://github.com/mmuecke/RxMQTTnet","commit_stats":{"total_commits":177,"total_committers":8,"mean_commits":22.125,"dds":0.6101694915254237,"last_synced_commit":"e5d86fc8178ff5e2a2c2ee447f79929c9d184629"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/mmuecke/RxMQTTnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmuecke%2FRxMQTTnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmuecke%2FRxMQTTnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmuecke%2FRxMQTTnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmuecke%2FRxMQTTnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmuecke","download_url":"https://codeload.github.com/mmuecke/RxMQTTnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmuecke%2FRxMQTTnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35681007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"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":["comunication","csharp","iot","mqtt-client","mqtt-protocol","net","netcore","nuget","rx"],"created_at":"2026-07-20T09:01:03.628Z","updated_at":"2026-07-20T09:01:04.668Z","avatar_url":"https://github.com/mmuecke.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build](https://github.com/mmuecke/RxMQTTnet/workflows/Build/badge.svg) [![codecov](https://codecov.io/gh/mmuecke/RxMQTTnet/branch/main/graph/badge.svg?token=8KtPaZ3VZB)](https://codecov.io/gh/mmuecke/RxMQTTnet) \n[![NuGet Stats](https://img.shields.io/nuget/v/MQTTnet.Extensions.External.RxMQTT.Client.svg)](https://www.nuget.org/packages/MQTTnet.Extensions.External.RxMQTT.Client)\n[![Downloads](https://img.shields.io/nuget/dt/MQTTnet.Extensions.External.RxMQTT.Client.svg)](https://www.nuget.org/packages/MQTTnet.Extensions.External.RxMQTT.Client)\n\n# RxMQTTnet\nAn extension to the [MQTTnet](https://github.com/chkr1011/MQTTnet) project, to transform the subscriptions into observables and to publish from an observable stream.\n\n# Create a client\n## Use the factory\nUse the `MQTTnet.MqttFactory` with the `MQTTnet.Extensions.External.RxMQTT.Client.MqttFactoryExtensions`.\n\n```csharp\nvar client = new MqttFactory().CreateRxMqttClient();\n```\n\n## Create the options\nUse the [managed client options](https://github.com/chkr1011/MQTTnet/wiki/ManagedClient#preparation)\n\n## Start the client\n\n```csharp\nawait client.StartAsync(options).ConfigureAwait(false);\n```\n\n# Subscribe\nGet an `IObservable\u003cMqttApplicationMessageReceivedEventArgs\u003e` by connecting to the rx client and use extensions to process the message:\n\n```csharp\nvar subscription = rxMqttClinet\n    .Connect(\"RxClientTest/#\")\n    .SelectPayload()\n    .Subscribe(Console.WriteLine);\n```\n\nEnd the subscription by disposing the subscription.\n\n```csharp\nsubscription.Dispose();\n```\n\n# Publish\n## From observable\n\nCreate an observable sequence of `MqttApplicationMessage`s and publish these via the rx client.\n\n```csharp\nObservable.Interval(TimeSpan.FromMilliseconds(1000))\n    .Select(i =\u003e new MqttApplicationMessageBuilder()\n        .WithTopic(\"RxClientTest\")\n        .WithPayload(\"Time: \" + DateTime.Now.ToLongTimeString())\n        .WithQualityOfServiceLevel(MqttQualityOfServiceLevel.ExactlyOnce)\n        .WithRetainFlag()\n        .Build())\n    .PublishOn(mqttClient)\n    .Subscribe();\n```\n\n## Single message\nUse the [mqtt client publish method](https://github.com/chkr1011/MQTTnet/wiki/Client#publishing-messages).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmuecke%2Frxmqttnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmuecke%2Frxmqttnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmuecke%2Frxmqttnet/lists"}