HostLoom.AspNetCore.WebSockets.Testing
0.6.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HostLoom.AspNetCore.WebSockets.Testing --version 0.6.0
NuGet\Install-Package HostLoom.AspNetCore.WebSockets.Testing -Version 0.6.0
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="HostLoom.AspNetCore.WebSockets.Testing" Version="0.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HostLoom.AspNetCore.WebSockets.Testing" Version="0.6.0" />
<PackageReference Include="HostLoom.AspNetCore.WebSockets.Testing" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HostLoom.AspNetCore.WebSockets.Testing --version 0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HostLoom.AspNetCore.WebSockets.Testing, 0.6.0"
#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.
#:package HostLoom.AspNetCore.WebSockets.Testing@0.6.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HostLoom.AspNetCore.WebSockets.Testing&version=0.6.0
#tool nuget:?package=HostLoom.AspNetCore.WebSockets.Testing&version=0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HostLoom.AspNetCore.WebSockets.Testing
In-process test client helpers for HostLoom.AspNetCore.WebSockets applications hosted by
ASP.NET Core TestServer.
await using var client = new WebSocketTestClient(server);
client.ConfigureRequest = request => request.Headers.Origin = "https://app.example";
await client.ConnectAsync(new Uri("ws://localhost/hostloom"), cancellationToken);
var welcome = await client.AwaitWelcomeAsync(cancellationToken);
await client.SendAsync(
new HubFrame
{
Kind = HubFrameKind.Subscribe,
StreamId = 1,
Topic = "orders.changed",
Credit = 8,
},
cancellationToken);
await client.AwaitSubscribedAsync(1, cancellationToken);
ConfigureRequest can add an Origin, cookies, or test authentication headers to the upgrade.
The client negotiates hostloom.json.v1 by default; pass another IWebSocketHubProtocol to its
constructor to exercise a different codec.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- HostLoom.AspNetCore.WebSockets (>= 0.6.0)
- Microsoft.AspNetCore.TestHost (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.18.0 | 0 | 10/27/2026 |
| 0.17.0 | 61 | 10/25/2026 |
| 0.16.1 | 56 | 10/22/2026 |
| 0.16.0 | 89 | 10/14/2026 |
| 0.15.1 | 85 | 10/12/2026 |
| 0.15.0 | 109 | 10/4/2026 |
| 0.14.0 | 94 | 10/4/2026 |
| 0.13.0 | 94 | 9/28/2026 |
| 0.12.0 | 101 | 9/27/2026 |
| 0.11.0 | 100 | 9/25/2026 |
| 0.10.0 | 106 | 9/22/2026 |
| 0.9.0 | 98 | 9/22/2026 |
| 0.8.0 | 110 | 9/19/2026 |
| 0.7.0 | 112 | 9/17/2026 |
| 0.6.0 | 122 | 9/6/2026 |
| 0.5.0 | 112 | 9/5/2026 |
| 0.4.0 | 118 | 9/3/2026 |