Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 

README.md

ReactiveSignalR

ReactiveSignalR provides reactive programming for ASP.NET Core SignalR client application (NOT supports ASP.NET SignalR).

Feature

  • Provides HubConnection.On method as IObservable
  • Provides HubConnection event as IObservable

How to use

//--- Create connection
var url = "http://localhost:5000/chathub";
var connection = new HubConnectionBuilder().WithUrl(url).Build();

//--- Fluently coding using Rx
var subscription
    = connection
    .On<string>("Receive")  // ReactiveSignalR provides this line
    .Subscribe(message => /* do something */);

//--- Unsubscribe
subscription.Dispose();

Installation

Getting started from downloading NuGet package.

PM> Install-Package ReactiveSignalR

License

This library is provided under MIT License.

Author

Takaaki Suzuki (a.k.a @xin9le) is software developer in Japan who awarded Microsoft MVP for Developer Technologies (C#) since July 2012.

About

Reactive Programming for SignalR

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.