Websockets.Standard 1.0.1

.NET Standard 1.3
Install-Package Websockets.Standard -Version 1.0.1
dotnet add package Websockets.Standard --version 1.0.1
<PackageReference Include="Websockets.Standard" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Websockets.Standard --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Websockets.Standard, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Websockets.Standard as a Cake Addin
#addin nuget:?package=Websockets.Standard&version=1.0.1

// Install Websockets.Standard as a Cake Tool
#tool nuget:?package=Websockets.Standard&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Websockets.Standard is a .Net Standard class library that wraps around different WebSocket implementations.

This project originated from WebSocket.PCL

Feel free to make an issue/pull request to support more library's/platforms


  • Android (Native coming soon)
  • IOS (SocketRocket coming soon)
  • UWP
  • .NET Core
  • .NET Framework (4.5 and up)
  • .NET Standard (1.3 - 1.6)
  • .NET Standard2 (2.0 and up)
  • WP8 (dropped because silverlight is not .net standard/VS 2017 compatible)




  • Include Websockets.Standard library

Android & Ios

  • Include Websockets.Websocket4Net library

.Net Framework

  • Include Websockets.Net (or Websockets.NetStandard) library

.Net Standard/Core

  • Include Websockets.NetStandard (or Websockets.NetStandard2) library

Windows 10 Universal

  • Include Websockets.Universal library

Xamarin Forms

  • Include the Websockets.Standard library in the main common app
  • Include the platform specific library in the platform projects

Windows 8 Phone

  • Fork or download source
  • Change Websocket4Net version to add silverlight support and compile with VS 2015
  • Include Websockets.Websocket4Net and Websockets.Standard library


        void Configure()
            // Call in your specific platform startup            
            // 1) Link at startup before socket creation
        void Connect()
            // 2) Get a websocket from the standard library via the factory
            connection = Websockets.WebSocketFactory.Create();
            connection.OnOpened += Connection_OnOpened;
            connection.OnMessage += Connection_OnMessage;

        void Send()
            connection.Send("Hello World");

        private void Connection_OnOpened()
            Debug.WriteLine("Opened !");

        private void Connection_OnMessage(string obj)
            Echo = obj == "Hello World";


There are a few 'test' examples (projects with the Tests suffix). Take a look there. The relivent code is in a standalone test file. (some might not work yet!)


  • Make the actual NuGet Packages
  • Support .NET 2.0 and other old frameworks
  • Support Native Android (port from old project)
  • Support Ios SocketRocket (port from old project)
  • Support other platforms.


Make an issue and i will try to help asap.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Websockets.Standard:

Package Downloads

WebSocket4Net implementation of Websockets.Standard.


.NET framework implementation of Websockets.Standard, wraps default implementation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 673 1/18/2018
1.0.0 1,092 1/17/2018

Initial port to .NET Standard with a few fixes and changes.