Loading…
Topic
SignalR
3 posts about SignalR. Every summary links to the original.
- 3 posts
- 3 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Authentication and Authorization: What's New in .NET 11
The post details authentication and authorization improvements in .NET 11. SignalR connections can now refresh their access token in place via a dedicated /refresh endpoint, avoiding disconnection or stale credentials. The server validates the refresh by comparing the sub claim and rejects subject changes with a 403 status. Authorization attributes implementing IAuthorizationRequirementData now work uniformly across Minimal APIs, MVC, SignalR, and Blazor. ASP.NET Core Identity infers passkey display names from the authenticator’s AAGUID for common managers like Google Password Manager and iCloud Keychain. Smaller changes include TimeProvider support in Identity, dotnet user-jwts for file-based apps, and TLS channel binding for Negotiate on HTTPS.
Build a Video Chat App with ASP.NET Core and Angular using Twilio Video
This tutorial builds a small group video chat application with an ASP.NET Core Web API and Angular single-page app using Twilio Programmable Video. The API binds typed Twilio credentials, mints short-lived access tokens locally with the API Secret, reads active rooms through the Twilio REST API, and pushes room-list changes over SignalR instead of browser polling. The Angular client uses the twilio-video library to capture camera and microphone media, connect to rooms, render participants, and provide device selectors. Local development runs the API alongside ng serve, while a Release MSBuild target runs npm ci and npm run build so dotnet publish places the SPA in the API's wwwroot. The resulting local test demonstrates a two-participant call and a live active-room count that updates when someone joins or leaves.
SignalR Scalability: Scaling Real-Time SignalR Applications on Heroku
Scaling a SignalR application beyond one server requires coordination because each server maintains its own connected-client list. The guide builds a .NET 9.0 chat application, adds the Microsoft.AspNetCore.SignalR.StackExchangeRedis package, and configures Redis as a backplane with a SignalRChat channel prefix and environment-specific connection settings. It deploys the application to Heroku, changes the dyno type to standard-1x, and runs three web dynos; without session affinity, WebSocket startup fails because the connection may be routed to a different dyno. Enabling Heroku’s http-session-affinity feature keeps requests on one dyno, after which both browsers establish stable WebSocket connections and exchange chat messages successfully across the scaled deployment.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.