CP.AspNetCore.SignalR.Client.Rx
1.1.15
See the version list below for details.
dotnet add package CP.AspNetCore.SignalR.Client.Rx --version 1.1.15
NuGet\Install-Package CP.AspNetCore.SignalR.Client.Rx -Version 1.1.15
<PackageReference Include="CP.AspNetCore.SignalR.Client.Rx" Version="1.1.15" />
paket add CP.AspNetCore.SignalR.Client.Rx --version 1.1.15
#r "nuget: CP.AspNetCore.SignalR.Client.Rx, 1.1.15"
// Install CP.AspNetCore.SignalR.Client.Rx as a Cake Addin #addin nuget:?package=CP.AspNetCore.SignalR.Client.Rx&version=1.1.15 // Install CP.AspNetCore.SignalR.Client.Rx as a Cake Tool #tool nuget:?package=CP.AspNetCore.SignalR.Client.Rx&version=1.1.15
CP.AspNetCore.SignalR.Client.Rx
Reactive Extensions for Microsoft.AspNetCore.SignalR.Client
Installation
Install-Package CP.AspNetCore.SignalR.Client.Rx
Usage
using CP.AspNetCore.SignalR.Client.Rx;
var connection = new HubConnectionBuilder()
.WithUrl("http://localhost:5000/hub")
.AutoReconnect()
.Build();
var sub = connection.On<string>("Stream").Subscribe(Console.WriteLine);
var con = connection.StartAsync().Subscribe();
Other options
HubBuilder.Create(builder => builder.WithUrl("https://localhost:53933/ChatHub"))
.Subscribe(x =>
{
var connection = x.hubConnection;
x.disposables.Add(connection.On<string, string>("ReceiveMessage").Subscribe(responce => Dispatcher.Invoke(() =>
{
var newMessage = $"{responce.t1}: {responce.t2}";
messagesList.Items.Add(newMessage);
})));
x.disposables.Add(connection.HasClosed().Subscribe(error => Dispatcher.Invoke(() =>
{
connectButton.IsEnabled = true;
sendButton.IsEnabled = false;
messagesList.Items.Add(error);
})));
x.disposables.Add(connectButton.Events().Click.Start(connection).Subscribe(_ => Dispatcher.Invoke(() =>
{
try
{
messagesList.Items.Add("Connection started");
connectButton.IsEnabled = false;
sendButton.IsEnabled = true;
}
catch (Exception ex)
{
messagesList.Items.Add(ex.Message);
}
})));
x.disposables.Add(sendButton.Events().Click.Subscribe(_ => Dispatcher.Invoke(async () =>
{
try
{
await connection.InvokeAsync("SendMessage", userTextBox.Text, messageTextBox.Text);
}
catch (Exception ex)
{
messagesList.Items.Add(ex.Message);
}
})));
});
Available operators
On<T>(string methodName)
On<T1, T2>(string methodName)
On<T1, T2, T3>(string methodName)
On<T1, T2, T3, T4>(string methodName)
On<T1, T2, T3, T4, T5>(string methodName)
On<T1, T2, T3, T4, T5, T6>(string methodName)
On<T1, T2, T3, T4, T5, T6, T7>(string methodName)
On<T1, T2, T3, T4, T5, T6, T7, T8>(string methodName)
HasClosed()
HasReconnected()
IsReconnecting()
StartObservable()
StartObservable(CancellationToken cancellationToken)
Start()
Start(CancellationToken cancellationToken)
Start(HubConnection connection)
Start(HubConnection connection, CancellationToken cancellationToken)
StopObservable()
StreamObservable()
InvokeAsync(string methodName, params object[] args)
HubBuilder.Create(builder => // Configure Builder)
Product | Versions 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 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.8)
- System.Reactive (>= 6.0.1)
-
.NETStandard 2.0
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.8)
- System.Reactive (>= 6.0.1)
-
net8.0
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.8)
- System.Reactive (>= 6.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CP.AspNetCore.SignalR.Client.Rx:
Package | Downloads |
---|---|
SignalRChatClient
An Extension of the Microsoft.AspNetCore.SignalR.Client library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.2 | 95 | 11/20/2024 |
1.1.15 | 146 | 9/18/2024 |
1.1.10 | 110 | 8/7/2024 |
1.1.8 | 119 | 6/25/2024 |
1.1.4 | 132 | 5/24/2024 |
1.1.2 | 120 | 5/24/2024 |
1.0.41 | 151 | 3/12/2024 |
1.0.24 | 182 | 1/10/2024 |
1.0.20 | 124 | 1/9/2024 |
1.0.19 | 130 | 1/9/2024 |
1.0.17 | 183 | 12/11/2023 |
1.0.15 | 166 | 11/27/2023 |
1.0.14 | 142 | 11/27/2023 |
1.0.13 | 113 | 11/27/2023 |
1.0.11 | 121 | 11/13/2023 |
1.0.9 | 143 | 11/8/2023 |
1.0.8 | 132 | 11/8/2023 |
1.0.7 | 117 | 11/8/2023 |
1.0.5 | 141 | 10/2/2023 |
1.0.1 | 147 | 9/20/2023 |
Compatability with Net 6 / 7 and net462