Enable SignalR Logging with One Simple Line

It is easy to think that SignalR works within a black box, but if you are deploying JavaScript clients, here is an EASY trick to learning what is happening underneath the scenes.

Before you start your connection, add this ONE line of code:

$.connection.hub.logging = true;

Tada! You have logging in your browser console:

Originally published on 2015-08-28 in Development