Skip to content

About

Simple WebSocket client for .Net

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simple WebSocket client for .Net

A simple WebSocket client implementation with asynchronous APIs.

NuGet package is available:

PM> Install-Package forestpeas.WebSocketClient

How to use

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

About

Simple WebSocket client for .Net

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages