Pulse.Mqtt.Testing
2.29.0
dotnet add package Pulse.Mqtt.Testing --version 2.29.0
NuGet\Install-Package Pulse.Mqtt.Testing -Version 2.29.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="Pulse.Mqtt.Testing" Version="2.29.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pulse.Mqtt.Testing" Version="2.29.0" />
<PackageReference Include="Pulse.Mqtt.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 Pulse.Mqtt.Testing --version 2.29.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pulse.Mqtt.Testing, 2.29.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 Pulse.Mqtt.Testing@2.29.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=Pulse.Mqtt.Testing&version=2.29.0
#tool nuget:?package=Pulse.Mqtt.Testing&version=2.29.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pulse.Mqtt.Testing
In-process MQTT test broker and loopback transport for fast client tests without Docker, ports, sleeps, or a production broker process.
Install
dotnet add package Pulse.Mqtt.Testing
Basic test broker
await using var broker = new PulseMqttTestBroker();
await using var client = new ResilientMqttClient(
broker,
new ResilientMqttClientOptions
{
Connect = new MqttConnectPacket { ClientId = "sut" },
});
await client.ConnectAsync(cancellationToken);
await client.WaitUntilConnectedAsync(TimeSpan.FromSeconds(5), cancellationToken);
The broker implements IMqttTransportFactory, so production client construction does not need a test-only adapter.
Dependency-injection tests
await using var broker = new PulseMqttTestBroker();
builder.Services
.AddPulseMqttClient("sut", options =>
{
options.Host = "unused";
options.ClientId = "sut";
})
.UseTransportFactory(_ => broker);
Script broker behavior
await using var broker = new PulseMqttTestBroker(new PulseMqttTestBrokerOptions
{
SubAckFactory = context => context.DefaultSubAck with
{
ReasonCodes = [MqttReasonCode.Success, MqttReasonCode.NotAuthorized],
},
PublishAckFactory = context => context.DefaultAcknowledgement,
});
The package is for application tests, not a production broker.
Full docs: https://araxis.github.io/pulse-mqtt/packages/testing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Pulse.Mqtt.Client (>= 2.29.0)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Pulse.Mqtt.Client (>= 2.29.0)
- System.IO.Pipelines (>= 9.0.17)
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 |
|---|---|---|
| 2.29.0 | 126 | 7/9/2026 |
| 2.29.0-preview.219 | 60 | 7/9/2026 |
| 2.29.0-preview.218 | 66 | 7/9/2026 |
| 2.29.0-preview.217 | 58 | 7/6/2026 |
| 2.28.0 | 101 | 7/6/2026 |
| 2.28.0-preview.215 | 49 | 7/6/2026 |
| 2.28.0-preview.214 | 56 | 7/6/2026 |
| 2.28.0-preview.213 | 69 | 7/6/2026 |
| 2.28.0-preview.212 | 66 | 7/6/2026 |
| 2.28.0-preview.211 | 56 | 7/4/2026 |
| 2.28.0-preview.210 | 64 | 7/4/2026 |
| 2.28.0-preview.209 | 57 | 7/4/2026 |
| 2.28.0-preview.208 | 64 | 7/4/2026 |
| 2.27.0 | 100 | 7/4/2026 |
| 2.27.0-preview.206 | 59 | 7/4/2026 |
| 2.27.0-preview.205 | 62 | 7/4/2026 |
| 2.27.0-preview.204 | 79 | 7/3/2026 |
| 2.27.0-preview.203 | 56 | 7/3/2026 |
| 2.27.0-preview.202 | 58 | 7/3/2026 |
| 2.27.0-preview.201 | 56 | 7/3/2026 |
Loading failed