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")
C# & .NET Reference