API
MapHub<T>()
Maps a hub endpoint.
Formal Syntax & Structure
csharp syntaxcsharp
app.MapHub<StockHub>("/stock")Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.app.MapHub<StockHub>("/stock")Maps a hub endpoint.
app.MapHub<StockHub>("/stock")// Documentary fragment; see mapped lesson for context.app.MapHub<StockHub>("/stock")