Rebex WebSocket

Multiplatform WebSocket library for .NET 2.0-4.7, .NET CF 3.5-3.9, Xamarin.iOS and Xamarin.Android


This was a homepage of the BETA version of Rebex WebSocket.
Final version has already been launched in March 2019.

Get the final version here:
rebex.net/WebSocket  

WebSockets are becoming increasingly popular, but support in .NET is far from perfect. Versions of .NET prior to 4.5 don't support WebSockets at all, and even .NET 4.5 only supports WebSockets on Windows 8 or higher.

Rebex WebSocket implements the WebSocket protocol on top of Rebex networking library. The result is a multi-platform library that works on both current and legacy platforms. WebSockets over a secure TLS/SSL channel are supported as well - including TLS 1.2, 1.1, 1.0, SNI and SHA-2.

Download Rebex WebSocket client final version (trial) »

Get Rebex WebSocket final version (trial) from NuGet.org »

Supported platforms

Usage

Rebex WebSocket API resembles the one provided by .NET 4.5 with minor differences (such as WebSocketClient instead of ClientWebSocket) and some syntactic sugar (such as string-based Send and Receive methods):

C# sample code

...
using Rebex.Net;
...

// create an instance of WebSocket client
var client = new WebSocketClient();

// connect to a server
client.Connect("ws://echo.websocket.org");

// send a message
client.Send("Hello!");

// receive response
string response = client.Receive();

// display it
Console.WriteLine(response);

Changelog

2019-03-28 - First public release of the full, non-expiring version. 
             Check out the new homepage rebex.net/WebSocket.
2018-10-26 - Optimized transfer speed. Support for more platforms. Compatible with Rebex Total Pack 2018 R3.
2018-09-26 - New WebSocket layer that passes Autobahn test suite. Lot of enhancements. Renamed assembly to Rebex.WebSocket.
2018-02-27 - Released an updated beta based on the latest version of Rebex HTTP and TLS core.
2016-09-15 - First beta of Rebex WebSocket released on Rebex Labs.

Send us feedback

Do you have any comments, questions or suggestions? Either post at our support forum or contact us directly at support@rebex.net.