SignalR Broadcast Send Message from Api Server to Multiple Clients .Net6 Blazor Server

preview_player
Показать описание
.Net6 Blazor Server Broadcast Message from Api to Multiple Clients using SignalR

Download Source Code :
Рекомендации по теме
Комментарии
Автор

You are not using BroadcastMessage or BroadcastEmployee from signalrhub, and directly calling sendAsync in controller to message all clients

solesolver
Автор

Thank you very much For This Excellent Explain

shabanelmogy
Автор

Hola ya habia visto en un blog de MS como inyectar el heredado del Hub como contexto pero para un objeto que generaba mensajes cada cierto tiempo, ahora tu explicación me deja mas claro su uso, y cómo lo usas para el servicio de Api Rest bien explicado, saludos desde México

tecnologiaeinformacionmoyb
Автор

Thanks man you help me a lot even though it lacks some information.

NoOne-pooe
Автор

Nice video on SignalR with very good explanations. Is it possible to send messages to specific users instead of broadcasting to all clients using the same WebAPI? Thanks.

cnchandroo
Автор

Hi, Super tutorial. One question. Is there any reason why we do not add, on a server side, SignalHub class as a Singelton and insted of using IHubContext<SignalHub> use instance of SignalHub directly? Calling method BrodcastEmployee direct from Api controller can harm preformance or anything else? Thanks for answer.

arkadiuszmikulec
Автор

Hi, how to send notification to particular user?

kalaiArasu-ji
Автор

how can we implement using azure signalr

bankniftydailylevel
Автор

Why are you using an api with blazor server?

habibi
Автор

Microsoft.AspNetCore.SignalR was deprecated... which one replaces it?

rodrigo
Автор

Great!

How can I use this to design a real time wallboard statistics, how can I call the api in every second

MohammadAlbazel
Автор

Thank you very much. Very useful video. Is it possible to use SqlDependency?

هشام-ظش
Автор

protected override async Task OnInitializedAsync()
{
empList = new List<Employee>();
hubConnection = new HubConnectionBuilder()

.Build();
hubConnection.On<Employee>("ReceiveEmployee", (incomingEmployee) =>
{

updatedOn =
//StateHasChanged();

});

hubConnection.On<string>("ReceiveMessage", (incomingMessage) =>
{

updatedOn =
// StateHasChanged();

});

await hubConnection.StartAsync();
}

ifpchan