Matthew Jonat
Matthew Jonat

Reputation: 307

Sending information from Laravel back end to React front end without making request from front first

I have a Laravel / React application which can receive webhooks from a third party service. When something is updated at that third party service it POST's to a certain endpoint in my Laravel application and I can then do stuff with whatever it posts. Typically this would be store that information or whatever within the back end / database but what I am trying to do is update the front end in real time if the third party service gets updated...is this even possible?

I know its annoying when people don't post code but I don't really have a lot at this point and am just wondering how this might be achieved at all.

Upvotes: 2

Views: 968

Answers (1)

Kurt Friars
Kurt Friars

Reputation: 3764

You are looking for websockets and broadcasting https://laravel.com/docs/7.x/broadcasting

Upvotes: 1

Related Questions