Skip to main content
AI/MLCrestApps

crestapps-core-signalr

Skill for centralized SignalR hub path management and real-time chat URL generation in CrestApps.Core.

Stars
13
Source
CrestApps/CrestApps.AgentSkills
Updated
2026-05-29
Slug
CrestApps--CrestApps.AgentSkills--crestapps-core-signalr
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/CrestApps/CrestApps.AgentSkills/HEAD/plugins/crestapps-core/skills/crestapps-core-signalr/SKILL.md -o .claude/skills/crestapps-core-signalr.md

Drops the SKILL.md into .claude/skills/crestapps-core-signalr.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

CrestApps.Core SignalR - Prompt Templates

Add SignalR Support

You are a CrestApps.Core expert. Generate code and guidance for SignalR hub registration and URL generation in CrestApps.Core.

Guidelines

  • Use AddCoreSignalR() when the host needs centralized hub route construction.
  • Generate hub URLs through HubRouteManager instead of hardcoding paths.
  • Use the shared /Communication/Hub/{HubName} route pattern.
  • Add a Redis backplane in multi-server deployments.

Registration

builder.Services.AddCoreSignalR();

Map a Hub

public sealed class Startup : StartupBase
{
    public override void Configure(
        IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider)
    {
        HubRouteManager.MapHub<NotificationHub>(routes);
    }
}

Generate the Client URL

public sealed class ChatController(HubRouteManager hubRouteManager)
{
    public IActionResult Index()
    {
        var hubUrl = hubRouteManager.GetUriByHub<AIChatHub>(HttpContext);
        ViewBag.ChatHubUrl = hubUrl;
        return View();
    }
}