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:

I really hope you enjoyed this post, and I especially hope you learned something new today because of it.

If you don't mind, I would love to send you more great knowledge packed emails (promise no more than 1 per week!).

Sign up below!

Full Name
Email *
email marketing by activecampaign
comments powered by Disqus