WebSocketExtensions 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package WebSocketExtensions --version 1.0.2
NuGet\Install-Package WebSocketExtensions -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebSocketExtensions" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebSocketExtensions --version 1.0.2
#r "nuget: WebSocketExtensions, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebSocketExtensions as a Cake Addin
#addin nuget:?package=WebSocketExtensions&version=1.0.2

// Install WebSocketExtensions as a Cake Tool
#tool nuget:?package=WebSocketExtensions&version=1.0.2

WebSocketExtensions DotNetCore

Defines WebSocket extensions to microsoft WebSocket implementation to bring it in line with something like WebSocketSharp

This package attempts to be like WebSocketSharp for DotNetCore

  • It is still a work in progress
  • It is not a perfect drop in replacement
    • Uses Async Api + Tasks
    • Uses Microsoft's own implemenation of WebSocket and HttpServer for upgrade
  • It is available via nuget package websocketextensions
  • See IntegrationTests for usage examples: [https://github.com/maxfridbe/websocketextensions/blob/master/src/WebSocketExtensions.Tests/IntegrationTests.cs]

Why not use WebSocketSharp

  • They do not seem to have a dotnetcore version
    • They Seem to be selling a version that is compatible in UnityStore (not open source)
  • People have taken it and forked it and fixed 80% of issues with it
    • The forks have poor drop-in compatiblity
    • Most dont work with DotNetCore
    • Questionable Integration Tests
    • Most not touched in forever

This Nuget Package (websocketextensions) defines

  • WebSocketServer
  • WebSocketClient
  • Extension Methods to WebSocket which allow for things like SendStream

Roadmap

  • Ability to use new Pipe feature to stream bytes directly to handler
  • More Exahstive unit tests

Liscensed under MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WebSocketExtensions:

Package Downloads
WebSocketExtensions.Kestrel

A WebSocketClient and WebSocketServer wrapper for WebSocket Api In System.Net, A drop in replacement for WebSocketSharp, Has implementations using HttpListener and WebListener and Kestrel

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.11.0 50 4/30/2024
2.10.0 83 4/26/2024
2.9.0 166 4/17/2024
2.8.0 488 12/18/2023
2.7.0 517 12/18/2023
2.6.0 4,362 9/9/2022
2.1.9 5,361 2/8/2022
2.1.7 5,022 11/30/2021
2.1.6 2,449 11/2/2021
2.1.5 387 11/2/2021
2.1.4 314 11/1/2021
2.1.3 634 10/4/2021
2.1.2 344 10/1/2021
2.1.1 587 8/31/2021
2.1.0 347 8/30/2021
2.0.0.2 406 6/11/2021
2.0.0.1 991 3/24/2021
1.0.20 349 3/18/2021
1.0.19 1,675 3/5/2021
1.0.18 389 3/3/2021
1.0.17 347 3/3/2021
1.0.16 374 3/1/2021
1.0.15 1,877 3/1/2021
1.0.14 379 2/26/2021
1.0.13 1,660 10/2/2020
1.0.12 2,776 3/12/2020
1.0.11 1,040 3/11/2020
1.0.10 646 8/27/2019
1.0.9 506 8/26/2019
1.0.8 2,992 8/14/2019
1.0.7 543 8/7/2019
1.0.6 523 7/18/2019
1.0.5 813 7/17/2019
1.0.4 4,433 2/23/2019
1.0.3 770 1/3/2019
1.0.2 776 12/6/2018
1.0.1 660 12/6/2018
1.0.0 647 12/5/2018

Feel free to contribute, Integration Tests Work but no other gaurentees.