Skip to content

xin9le/ReactiveSignalR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published