Enable SignalR Logging with One Simple Line

August 28, 2015

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:

SignalR logging example