For some specific cases, SignalR offers a couple of native ways to deal with errors as follows:
promiseobject that SignalR returns. This means that we can either use
promiseobject returned when starting a connection to intercept errors during the connection process, or we can use
promiseobject returned during the remote invocation of a Hub method. By hooking a callback with these ...