
Learn the fundamentals of real time, why it matters, and install and configure SignalR to progressively build a full featured chat app from scratch.
Real-time web enables the server to push data as it happens, delivering it instantly without waiting for a client request, highlighting the speed needed for timely information.
Understand HTTP's stateless request‑response model, where servers reply only after requests. See why this limitation motivates real‑time two‑way communication for chat apps.
Examine ajax porting and long polling as solutions for real-time updates: the client polls the server at short intervals or holds a request until new data arrives.
Leverage tcp sockets to enable real-time communication by maintaining a persistent, bidirectional connection between client and server, allowing the server to push data without the client requesting it.
Explore how the Microsoft SignalR library enables real-time functionality in applications, and get practical by switching to Visual Studio to start building a web application using HDMI and JavaScript.
Install SignalR by adding the package, locate the scripts folder, and configure the server to run a full featured chat app from scratch.
Configure the server to support a full featured chat app, addressing startup costs and the rules needed to get the application working.
Create server methods in SignalR and expose them to client-side JavaScript. Follow naming conventions with capitalized method names to enable client calls from JavaScript.
Learn to call server methods by establishing a connection, obtaining a proxy, and invoking methods from the client side using script blocks.
Create client functions to call server methods from the JavaScript directory, enabling real-time communication by invoking C-sharp server code with a defined function signature of string and string.
Explore the SignalR state object, showing how a proxy exposes server-accessible variables and how to create and access a state property using core states.
Manage chat rooms with SignalR by using groups to join, leave, and send messages, and implement server methods to add or remove members by connection id.
Create a mass chat broadcast by implementing the server send message method. Ensure the method accepts a username and a message and broadcasts them to all connected users.
Bind the client to the server's SendMessage method in a SignalR chat app, establish the socket connection, and trigger server calls from button clicks.
Demonstrate building a mass chat with SignalR by broadcasting usernames and messages to all connected clients in real time, showcasing a full featured chat app.
Learn to implement chat rooms by binding to the server SendToRoom method, handle room and message input, validate non-empty fields, and broadcast messages to all users with a send button.
Learn to implement the server SendToRoom method to broadcast chat messages by username to a room, manage group assignments, and handle users joining or leaving the chat.
Learn how to implement server-side join and leave room methods in SignalR to manage chat rooms as groups, and handle connections and group names.
Explore a browser-based chat rooms demonstration that shows sending and receiving messages, and how message visibility changes as room state evolves for different users.
Bind usernames to connection IDs to enable private messaging in SignalR, using the JoinChat method and a join button to register users before sending targeted messages.
Bind the chat to the server by invoking the SendToUser method to deliver private messages to a specific username, validating the recipient's username and photo, and implementing the server-side method.
Implement the server side sendToUser method to privately deliver a message to a specific user by validating their connection ID against the joined users dictionary.
Watch a private chat demonstration within a full-featured SignalR chat app, showing how messages are sent and received along with practical cost considerations.
Review real-time web concepts, explore possible solutions, and illustrate solving the problem with CNR, then outline server and client setup.
The purpose of this course is to give you the fundamental knowledge of real-time web and how to implement it using Microsoft's suspiciously easy to use library Signal R and probably to make you fall in love with it.
Why take this course?
You should take this course if you're a professional(or student) with some coding experience in the past but lack understanding of what is real-time web and why it is so important to have in your app. You will learn how to implement a real-time web functionality in your app using Microsoft's library SignalR.
Sections 1, 2 and 3 contain very useful information about HTTP protocol inner workings and the difference from TCP Socket connections and anybody can benefit from them - regardless whether they're familiar with C#.Net or not.
Practice beats theory
A lot of courses tend to pile up theory ahead of the real code, this course is going take a minimum theory first approach.
You will learn essentials of real-time web and will start implementing it in your application in under 20 minutes.
We value your time
Your time is precious, so instead of repeating one thing in 4 different ways, we will keep it straight to the point - all videos tend to include only the information that you are going to benefit from - no small talk.
Open Source Project
All source code shown in this course is also made available as a Git repository through GitHub. Students can create their own branches, and push changes back for community benefit.