SignalR Error loading hubs. How to handle when service is down -
I have a My JavaScript client is in index.html: But the Windows service is not always running, so if this is not running and I try to load index.html then I get the error: It makes sense because it does not search for the Javascript file until the Windows service is running. So my question is, how can I make it flexible, signal r application that is self hosted Windows service Hub .
& lt; Script src = "http: // localhost: 8080 / signalr / hubs" & gt; & Lt; / Script & gt;
Unwanted error: Signal R: Error loading hub. Make sure your center reference is correct, e.g. & Lt; Script src = '/ signalr / js' & gt; & Lt; / Script & gt;
$ .getScript ("http: // localhost: 8080 / signalr / hubs") .done (script), textstats) {});
Comments
Post a Comment