Click here to Skip to main content
15,918,330 members
Articles / Web Development / HTML5

Beginner's Guide to Using SignalR (WebSockets) via .NET Core

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
11 May 2024CPOL27 min read 7.7K   282   21  
Learn to use SignalR to asynchronously update all web clients in real-time using SignalR broadcasts.
The entire point of using a technology like SignalR is updating remote clients in real-time. I wanted a simple example that would allow readers to see how it might work, by making a helpful example and introduction to SignalR. This article covers creating a .NET Core Web App using Visual Studio Code and the dotnet command line to use SignalR in your project. We'll add new HTML page, JavaScript, references (using nuget), and generating a SignalR Hub class that will send the data to the other browsers.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) RADDev Publishing
United States United States
"Everything should be made as simple as possible, but not simpler."

Comments and Discussions