Giovanni Cocco
Giovanni Cocco2mo ago

Giovanni Cocco - Hi everyone! Is it possible SS...

Hi everyone! Is it possible SSE node? I need to configure an eventSource on the frontend (React) to listen to payment updates in real time, avoiding pooling. I created an API Call trigger and registered it on the payment platform, which will return whenever a payment confirmation event is received. Then I need to update the frontend, so the next node would be an SSE.
Solution:
I think if you simply return the response along with the event, you can update your frontend by checking if response.status true, then update the frontend. As in server sent events, you can call the endpoint, and handle this in your fornted. A good blog to check out - https://medium.com/tokopedia-engineering/implementing-server-sent-events-in-reactjs-c36661d89468
Medium
Implementing Server Sent Events in ReactJS
Have you ever heard about Server Sent Events (SSE) ? I first tried it when I was assigned to work on a project which required processing…
Jump to solution
2 Replies
Solution
Gaurav Chadha
Gaurav Chadha5w ago
I think if you simply return the response along with the event, you can update your frontend by checking if response.status true, then update the frontend. As in server sent events, you can call the endpoint, and handle this in your fornted. A good blog to check out - https://medium.com/tokopedia-engineering/implementing-server-sent-events-in-reactjs-c36661d89468
Medium
Implementing Server Sent Events in ReactJS
Have you ever heard about Server Sent Events (SSE) ? I first tried it when I was assigned to work on a project which required processing…
Giovanni Cocco
It wasn't clear how to do this using Buildship, but it was very easy to do using Pipedream. Thanks!