{"id":25343877,"url":"https://github.com/netina/netina.stomp.client","last_synced_at":"2025-08-01T04:37:52.934Z","repository":{"id":65655244,"uuid":"376773582","full_name":"Netina/Netina.Stomp.Client","owner":"Netina","description":"nuget package for .net to connect stomp server ","archived":false,"fork":false,"pushed_at":"2023-08-25T13:36:07.000Z","size":1423,"stargazers_count":10,"open_issues_count":5,"forks_count":9,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-03T20:06:28.675Z","etag":null,"topics":["stomp","stomp-client"],"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/Netina.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}},"created_at":"2021-06-14T09:44:37.000Z","updated_at":"2024-05-30T08:56:38.000Z","dependencies_parsed_at":"2023-02-17T10:30:24.152Z","dependency_job_id":null,"html_url":"https://github.com/Netina/Netina.Stomp.Client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netina%2FNetina.Stomp.Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netina%2FNetina.Stomp.Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netina%2FNetina.Stomp.Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netina%2FNetina.Stomp.Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Netina","download_url":"https://codeload.github.com/Netina/Netina.Stomp.Client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238829550,"owners_count":19537719,"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","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":["stomp","stomp-client"],"created_at":"2025-02-14T10:59:17.786Z","updated_at":"2025-02-14T10:59:18.406Z","avatar_url":"https://github.com/Netina.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netina.Stomp.Client\n\n[![Build status](https://ci.appveyor.com/api/projects/status/166elreftg7pc62g?svg=true)](https://ci.appveyor.com/project/mrmohande3/inet-stomp-client)\n[![NuGet](https://img.shields.io/nuget/v/Netina.Stomp.Client.svg)](https://www.nuget.org/packages/Netina.Stomp.Client/)\n[![NuGet](https://img.shields.io/nuget/dt/Netina.Stomp.Client.svg)](https://www.nuget.org/packages/Netina.Stomp.Client/)\n[![GitHub issues](https://img.shields.io/github/issues/Netina/Netina.Stomp.Client.svg)](https://github.com/Netina/Netina.Stomp.Client/issues)\n\n.NET nuget package for connecting stomp server in client async\n\n### Usage\n    Install-Package Netina.Stomp.Client\n    \n### 1.Add stomp url and connect\n```C#\nIStompClient client = new StompClient(\"ws://xxxxx.xx\");\nvar headers = new Dictionary\u003cstring, string\u003e();\nheaders.Add(\"X-Authorization\", \"Bearer xxx\");\nawait client.ConnectAsync(headers);\n```\nHere we create instance from StompClient and set STOMP url and create Dictionary for headers like your JWT. In case you have no headers set your dictionary empty. Now your client connected.\n### 2.Subscribing\n```C#\nawait client.SubscribeAsync\u003cobject\u003e(\"notic\", new Dictionary\u003cstring, string\u003e(), ((sender, dto) =\u003e\n{\n}));\n```\nSubscribe with generic SubscribeAsync method. This method get topic and headers for STOMP SUBSCRIBE command and action for returned objects. \n```C#\nawait client.SubscribeAsync(\"notic\", new Dictionary\u003cstring, string\u003e(), ((sender, stompMessage) =\u003e\n{\n    await client.AckAsync(stompMessage.Headers[\"ack\"]);\n}));\n```\nSubscribe and get plain STOMP message with headers, command and body. Then perform ACK operation.\n\n### 3.Send\n```C#\nawait client.SendAsync(body, \"notic\", new Dictionary\u003cstring, string\u003e());\n```\nSend messages with SendAsync method. This method get body object and convert it to json for sending and url method in server and header dictionary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetina%2Fnetina.stomp.client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetina%2Fnetina.stomp.client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetina%2Fnetina.stomp.client/lists"}