Aspnetcore.docs: SignalR: Accessing the hub routing table

Created on 26 Nov 2018  路  8Comments  路  Source: dotnet/AspNetCore.Docs

Is there a way to access the hub routing table after it's been configured?

P1 SignalR doc-enhancement

All 8 comments

@zanate4019 what's the scenario where you need to do so?

The main reason is because I'd like to drop the urls in javascript variables in my mvc template using razor. This will allow my front-end SPA to always know the address of my SignalR endpoints even if the routing changes and only have to configure it in one place (startup.cs).

Here's some psuedo code for what I'm talking about:
`