ASP.NET Core SignalR - Simple Text Chat

Published: 07 August 2022
on channel: Ammar Sharshara
306
6

How to use asp.net core signalr to build simple chat

1_add signalr to webprojcet
2_create server hub file
3_crate client javascript file

In Solution Explorer, right-click the project, and select Add Client-Side Library.
In the Add Client-Side Library dialog:
Select unpkg for Provider
Enter @microsoft/signalr@latest for Library
files:dist:browser: signalr.js and singalr.min.js

Sample link:
https://github.com/amsharshara/WebSig...

one of problem signalR lose connection we add withAutomaticReconnect() ::::
var con = new signalR.HubConnectionBuilder().withUrl("/Client").withAutomaticReconnect().build();

Microsoft Visual Studio Professional 2022
#sql #microsoft #net #visualstudio
#WPF #csharp #android #xamarin #sql #sqlite
#asp
#csharp
#dotnet


https://docs.microsoft.com/en-us/aspn...


Watch video ASP.NET Core SignalR - Simple Text Chat online without registration, duration hours minute second in high quality. This video was added by user Ammar Sharshara 07 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 30 once and liked it people.