Skip to content

Commit

Permalink
Allowed signalR path to be configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
dicky authored and dicky committed Aug 17, 2017
1 parent 634d38c commit beecb31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion WebApplication.Core.React/wwwroot/lib/dotnetify-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var dotnetify = typeof dotnetify === "undefined" ? {} : dotnetify;
return proxies;
};

signalR.hub = $.hubConnection("/signalr", { useDefaultPath: false });
signalR.hub = $.hubConnection(dotnetify.hubPath, { useDefaultPath: false });
$.extend(signalR, signalR.hub.createHubProxies());

}($, window));
Expand All @@ -133,6 +133,7 @@ var dotnetify = typeof dotnetify === "undefined" ? {} : dotnetify;
hub: null,
hubServer: $.connection.dotNetifyHub.server,
hubOptions: { "transport": ["webSockets", "longPolling"] },
hubPath: "/signalr",

// Debug mode.
debug: true,
Expand Down
3 changes: 2 additions & 1 deletion dist/dotnetify-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var dotnetify = typeof dotnetify === "undefined" ? {} : dotnetify;
return proxies;
};

signalR.hub = $.hubConnection("/signalr", { useDefaultPath: false });
signalR.hub = $.hubConnection(dotnetify.hubPath, { useDefaultPath: false });
$.extend(signalR, signalR.hub.createHubProxies());

}($, window));
Expand All @@ -133,6 +133,7 @@ var dotnetify = typeof dotnetify === "undefined" ? {} : dotnetify;
hub: null,
hubServer: $.connection.dotNetifyHub.server,
hubOptions: { "transport": ["webSockets", "longPolling"] },
hubPath: "/signalr",

// Debug mode.
debug: true,
Expand Down
Loading

0 comments on commit beecb31

Please sign in to comment.