https://github.com/imtiajahammad/signalrapp
A web app implementing SignalR
https://github.com/imtiajahammad/signalrapp
aspnetcore blazor csharp signalr
Last synced: 3 months ago
JSON representation
A web app implementing SignalR
- Host: GitHub
- URL: https://github.com/imtiajahammad/signalrapp
- Owner: imtiajahammad
- Created: 2023-02-16T13:21:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T14:30:38.000Z (over 3 years ago)
- Last Synced: 2025-03-16T09:35:48.598Z (over 1 year ago)
- Topics: aspnetcore, blazor, csharp, signalr
- Language: HTML
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SignalRApp
A web app implementing SignalR
Reference: https://www.youtube.com/watch?v=RaXx_f3bIRU&ab_channel=IAmTimCorey
#1
adding nuget package: Microsoft.AspNetCore.SignalR.Client
#2
New folder called Hubs;
New class named ChatHub.cs; inherits from Hub; add method for signalR
#3
Setup Program File for SignalR:
add using for ResponseCompression
add using for Hubs
add ResponseCompression to use builder.Services
add map url for chatHub
#4
Client setup to consume messages
add using SignalR.Client
add inject NagigationManager
add implements IAsyncDisposable for disposing
set up code for hub connection
set up UI for hub collaboration