Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.11 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.11 KB

Mikael Dúi's WAMP Library for .NET

.NET CodeQL Analysis

image

Adds 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 *

Example

using 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();