A simple WebSocket client implementation with asynchronous APIs.
NuGet package is available:
PM> Install-Package forestpeas.WebSocketClientusing (var client = await WsClient.ConnectAsync(new Uri("ws://localhost:8125")))
{
await client.SendStringAsync("Hi!");
string receivedMsg = await client.ReceiveStringAsync();
await client.SendByteArrayAsync(Encoding.UTF8.GetBytes("Hi!"));
byte[] receivedBytes = await client.ReceiveByteArrayAsync();
}