https://github.com/mikaeldui/wamp-dotnet
WAMP support for System.Net.WebSockets.
https://github.com/mikaeldui/wamp-dotnet
dotnet wamp websockets
Last synced: 2 months ago
JSON representation
WAMP support for System.Net.WebSockets.
- Host: GitHub
- URL: https://github.com/mikaeldui/wamp-dotnet
- Owner: mikaeldui
- License: unlicense
- Created: 2022-01-14T01:11:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T01:49:29.000Z (about 3 years ago)
- Last Synced: 2025-01-29T05:15:15.853Z (4 months ago)
- Topics: dotnet, wamp, websockets
- Language: C#
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Mikael Dúi's [WAMP][wamp] Library for .NET
[](https://github.com/mikaeldui/wamp-dotnet/actions/workflows/dotnet.yml)
[](https://github.com/mikaeldui/wamp-dotnet/actions/workflows/codeql-analysis.yml)
Adds [WAMP][wamp] classes to `System.Net.WebSockets.Wamp`.
You can install it using the following **.NET CLI** command:
dotnet add package MikaelDui.Net.WebSockets.Wamp --version *
## Exampleusing System.Net.WebSockets.Wamp;
using WampSubscriberClient client = new()
await client.OpenAsync("wss://example.com/");
await client.SubscribeAsync("news");
var newsMessage = await client.ReceiveAsync();
Console.WriteLines("News received: " newsMessage.Elements[0].GetString());
await client.CloseAsync();[wamp]: https://github.com/wamp-proto/wamp-proto