nad
nad

Reputation: 1100

How do i broadcast a message to all clients via Web API

I have two Projects, an Asp.net WebAPI & a separate Single Page Web Application. My requirement is that when a form is submitted via the web application it is processed at the Web API. Once the Request has been handled successfully i want to broadcast a message to all the clients notifying them that a new request had been submitted. How can I do it? Any help would be appreciated. I looked into SignalR, but couldn't find an implementation for this requirement.

Upvotes: 2

Views: 1461

Answers (3)

Sachet Gupta
Sachet Gupta

Reputation: 837

I suggest you use signalR to cater your requirement. You can go thru this link https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/ for more details.

Upvotes: 1

DAVID OLASUPO
DAVID OLASUPO

Reputation: 39

Pusher's got libraries you can use to handle anything notifications https://pusher.com/docs/libraries

Upvotes: 1

EddyKim
EddyKim

Reputation: 175

If your project is small use pusher "https://pusher.com/"

when you use that well It may be cheaper than you make And less resources.

Upvotes: 0

Related Questions