
Learn how hubs in SignalR act as server-side classes that send and receive messages, enable two-way open connections, and are routed like hubs/user account in an MVC app.
Walk through a 10,000-foot overview of the SignalR flow, from creating the hub on the server to connecting from the client and rendering real-time updates in the dom.
Create a SignalR project in Visual Studio 2022, use an mvc template with individual accounts identity, and push the project to a private git repository.
Compare send and invoke in SignalR, showing how invoke returns a value via a promise, while send yields no response; pass parameters and observe returned values in the client.
Demonstrate subscribing and unsubscribing to groups (houses) in a SignalR app, update the client UI, invoke hub methods, and show toast notifications for actions.
Fix a subscription bug in a SignalR app by lowercasing the house name input, ensuring the unsubscribe button displays and the subscribe button hides across connections during testing.
Users subscribe to houses and trigger notifications that display a toast message to subscribers in the house group; the hub sends messages only to those subscribed.
Create a hub and client-side SignalR implementation to broadcast messages to all users, handle message received events, and update the chat list in real time.
Build a chat view model with a four-room limit, track room names and the logged-in user id, and authorize access before displaying the chat view.
Learn to manage disconnections in a signalr chat hub by tracking per-user connections, removing a single disconnected connection, and calling receive user disconnected to update online users.
Typically in an application client initiates a request and server responds back, but what if server had to send a data without a request?
OR
What if you want something on the web page to be automatically refreshed when new data is available?
OR
You want to learn how a typical chat application works?
SignalR is the answer to that! SignalR has been there since many years, but still it is a new domain to many .NET Developers. SignalR is just a wrapper around the real time web protocols, but it is a great technology to achieve real time web communication. In this course we will walk you though the basics of what is SignalR and what problem it solves.
After that we will dive deeper in the fundamentals and build multiple projects using SignalR.
At the end of this course you will be confident to take what you learned and implement SignalR in your project! This is 100% hands on course, so lets get started!
My main focus is not to teach you some theory! My goal is always to teach you real world application and how you can practically use SignalR. The course is built using .NET 7! I always thrive to keep content up to date and if you have any questions, I will just be a question away :)