
Explore real-time applications with .NET Core SignalR, contrasting traditional HTTP requests with server-driven updates via hubs and websockets, enabling full-duplex communication and JSON data types.
Install software for building real-time apps with .NET Core SignalR: .NET Core SDK 3.1 or higher, an IDE (Visual Studio or Visual Studio Code), and optional SQL Server.
Explore setting up .NET Core SignalR in a new solution with Visual Studio 2019, create a GitHub project, build an empty ASP.NET Core web app, and push the initial commit.
Add the signalr client libraries by installing the Microsoft.signalr package to the wwwroot/javascript/signalr directory, then reference signalr.js and signalr.min.js in your mvc demo.
Create a weather hub in a net core signalr app, add a hubs folder, implement the hub with Microsoft.AspNetCore.SignalR, and broadcast messages to connected clients in real time.
Configure services to add SignalR and map the weather hub to /weatherHub in startup using endpoints, enabling real-time server-to-client communication across browsers.
Import client-side SignalR libraries and jQuery, then connect to SignalR to enable client-to-server messaging. Build a simple messages container on the home page to display server messages.
Learn to implement a SignalR client in .NET Core by creating a hub connection, wiring broadcast events, and updating the weather list in real time with error handling.
Inject a hub context via dependency injection in the home controller to broadcast real-time messages from the server to all connected clients using SignalR.
Launch multiple browser clients to demonstrate server-to-client real-time data using the SignalR hub. See how the hub broadcasts visitor actions across all connected browsers in real time.
Learn how a client sends a message to the weather hub and broadcasts it to all clients using send async in .NET Core SignalR.
Update the client to connect to the weather hub, send messages via a text input and send button, and broadcast them to all clients with the broadcast from client method.
Launch a real-time chat app using .NET Core SignalR in an MVC project, broadcasting client messages via a server-side hub to all connected clients.
Commit and push the demo for a SignalR hub that enables server-to-client and client-to-server communication, then push to the master branch and publish the repo on GitHub.
Configure a signalr hub to enable real-time chat and server-to-client messaging. Create an mvc chat project with individual user accounts and sql server 2017 persistence, models, and database.
Define chat models by creating a message class with id, body, timestamp, and a chat user reference that extends IdentityUser, with the user owning a messages collection.
Configure the chat feature by swapping identity user for chat user in the app db context, add a messages table, and apply migrations to persist chat messages in SQL Server.
Install and configure SignalR by adding a chat hub class, wire up services and endpoints in Startup, then include the client side library to enable a chat room.
Set up a chat controller and index view, implement ASP.NET Core Identity authentication, and secure the chat route with authorization so only authenticated users access the chat.
Create a chat.js and reference jQuery, SignalR, and a Font Awesome kit to enable chat hub communications and a functional chat room on the index page.
Build a .NET Core SignalR chat index page skeleton with a header, chat room, messages box, connections and users sections, a message input, and a font awesome send icon button.
Apply styling to the chat UI, wire up the SignalR chat hub and the JavaScript client, and refine the chat room layout with connections and messages.
Implement chat hub styling on the chat index page and set up the server-side SignalR wiring with dependency injection and user identity services to manage connections and messages.
Inject the read-only identity user manager and read-only application db context into the chat hub via constructor to persist messages and manage chat users.
Broadcast an asynchronous hub method from the client to all connected clients, persisting the message body with the current user and timestamp, handling errors via try-catch reported to the caller.
Override on connected async and on disconnected async in a .NET Core SignalR hub to broadcast user connected and user disconnected events to all clients, updating UI with connection details.
Create a client connection to the chat hub with signalR hub connection builder using the /chat hub URL, and wire up handlers for broadcast, user connected, and user disconnected.
Learn to build a signalr chat client by starting the connection, reading ui input, and invoking the server hub's broadcast method, while handling errors and alerting users on disconnect.
Learn to implement a broadcast event in a SignalR chat app by updating the client to append messages with body, sender, and timestamp, and enable auto-scroll in the chat room.
Handle the user connected event by adding the user to the connected users list, display the connection date time and id, and post a welcome message to the chat room.
Launch and test a multi-user chat app by registering multiple users, logging in from separate browsers, and sending messages that are stored with user ids and timestamps.
Commit the chat hub to GitHub by syncing changes, viewing the initial chat hub commit in Team Explorer, and pushing to the repository for real-time client updates using SignalR.
Get Started with .NET Core SignalR!
Are you a student or professional in the field of software engineering or maybe contemplating an educational or career move to the software engineering world? Have you been looking for a quick and easy way to get up and running with .NET Core coupled with SignalR Real-Time Development and don't want to go through an overwhelming amount of material just to get your environment setup and ready for building your own apps that interact with data? Don't worry as THIS IS THE COURSE FOR YOU!
In my course, I will teach you how to get your environment setup for .NET Core SignalR, and help you to build your first set of apps that apply Real-Time Development through a step-by-step guided approach.
Take this course and feel proud of the fact that you will be one step closer towards the rewarding field of Software Engineering using .NET technologies!