Simon Goodman
Simon Goodman

Reputation: 1204

Changing/setting the path or route to the hub in SignalR

I have a signalR application and it is working as expected. But I would like to change the path to the hub.

currently it is /signalr/hub/ but I want to be able to set it to something else.

How can I change the route?

Upvotes: 2

Views: 2662

Answers (1)

Shachaf.Gortler
Shachaf.Gortler

Reputation: 5735

On the server you can do :

app.MapSignalR("/newHubLocation", new HubConfiguration());

Upvotes: 4

Related Questions