Last post Oct 25, 2019 07:11 AM by Anders Malmgren
May 17, 2013 04:15 AM|Anders Malmgren|LINK
I needed a generic way of listening to server side events on the client, I created this little SignalR proxy
Install through nuget
Its very easy to setup look at the wiki
Install .NET Client through nuget
Hope to get feedback on improvements etc, thanks.
May 22, 2013 03:50 AM|Anders Malmgren|LINK
Lib refactored, moved constraint part of library to seperate assembly.
I did this because its highly likly you want to design your system in a way that you constraint event propagation from a lib that should not know about SignalR (Backend, domain, CQRS store, etc). The constraint lib has no dependecy to SignalR and can be
installed using nuget
May 27, 2013 03:12 PM|Anders Malmgren|LINK
New version on nuget
You can now use Generic events like
signalR.eventAggregator.subscribe(MyApp.Events.MyGenericEvent.of("System.String"), this.onMyGenericEvent, this);
that will let you return all generic argument types.
Jun 03, 2013 04:16 AM|Anders Malmgren|LINK
new version out for a few days, small change but important neverless, you can now use Covariant declared generic events.
Jun 21, 2013 07:57 AM|Anders Malmgren|LINK
Added a .NET Client
It requires version 0.3.33 or later of the server library
Subscribe to a event like
public class MyViewModel : IHandle<MyEvent>
public MyViewModel(IEventAggregator eventAggregator)
public void Handle(MyEvent message)
//Act on MyEvent
Aug 21, 2013 07:10 AM|Anders Malmgren|LINK
New version 1.0.51
New Versio of .NET client 1.0.53
Aug 22, 2013 04:24 AM|Anders Malmgren|LINK
Introduced a edge case bug with 1.0.51
It was caused by a third party library (Knockout Validation) found its way into the client libraries subscription queue and recurisvly iterate it, since each subscription has a reference to the subscriber the library went into a infinite loop and stack overflowed.
I made a closure around the subscription queue so no third party library should be able to find its way into our subscription queue.
Download 1.0.57 for fixed version
Sep 17, 2013 07:17 AM|Anders Malmgren|LINK
This release fixes a problem with multiple subscriptions of same type of event from the same client. Lets say you have two components (ViewModels etc) that listens to the same event (Standard event, generic event with same generic parameters or constrained
event with same constraint).
With the the old solution this would result in one subscription to server per client side subscription. Meaning that when the server side event fires it will fire as many times as the client subscribed. This will result in that the subscribers client side
will recevice the event multiple times, for 2 subscriptions you will get 4 client side event triggers.
When you unsubscribe a component client side all components listen to that same event will be unsunscribed server side.
This version fixes both subscribe and unsubscribe
New version 1.1.67
New Version of .NET client 1.1.77
Oct 30, 2013 02:02 PM|Anders Malmgren|LINK
New versions of both Server and .NET client, only change is to support SignalR 2.0. One small change for setup, in your 2.0 Config method do
public static void Configuration(IAppBuilder app)
Nov 13, 2013 03:38 AM|Anders Malmgren|LINK
There was a bug introduced in 1.1.67 that I noticed first now, it shows if you have a generic event that you listen to multiple times but with different generic paramers and they have the same constraint.
This is fixed in version 1.2.99 for SignalR 2.0 and version 1.1.85-SignalR-1x for SignalR 1.x
Jun 15, 2014 10:31 AM|Anders Malmgren|LINK
Fixed a minor edge case bug with contraint handling. You can now have one Contraint that handles all Events. I wrote a blog about what that can be good for
Also I've published a Live demo for the API here
Feb 10, 2015 06:22 PM|Anders Malmgren|LINK
New version 1.4.117
New Versio of .NET client 1.4.118
Oct 12, 2015 08:58 AM|Anders Malmgren|LINK
Angular wrapper for the client side library added
You can now attach listeners to the scope like
Feb 01, 2016 03:59 PM|Anders Malmgren|LINK
New version, biggest change is that we Separated core and SystemWeb parts of the library.
If you host under ASP.NET install
Mar 05, 2019 12:34 PM|Anders Malmgren|LINK
Finally got around to port this library to ASP.NET Core. Install using
Full docs here
Mar 05, 2019 10:03 PM|Anders Malmgren|LINK
The plugin is super easy to use. Just install it using unpkg: signalr.eventaggregatorproxy.vue
Install it in Vue: Vue.use(signalR);
You can now listen to server side events from your vm by calling
Or publish clent side events by doing
The plugin unsubscribes itself when the vm is destroyed so the dev can worry about other stuff
Full doc: here
ASPNET Core doc: here
Oct 25, 2019 07:11 AM|Anders Malmgren|LINK
Implemented Core 3.0 support. Version 3.0.x requires Core 3.0. Install it using