Is there a place where I can catch all signalr errors?

I am using SignalR with mvc4 c # web application. I created the ChatHub: Hub class. Is there an event that I can log on the server side to catch all errors thrown from signalr?

+4
source share
1 answer

All SignalR internal errors are logged separately from user errors in the hub method.

To log internal SignalR errors, see the SignalR web.config diagnostic section: https://github.com/SignalR/SignalR/blob/master/samples/Microsoft.AspNet.SignalR.Hosting.AspNet.Samples/Web.config

To register hub method invocation errors, create a pipeline pipeline module: SignalR Logging

+2
source

All Articles