#Create webhook/callback when a job is completed

1 messages · Page 1 of 1 (latest)

sleek cove
#

How do you send a request to the browser from the server using axios?

rugged ruin
sleek cove
#

Ah, so they should have their own server set up to receive these updates. Yeah okay, that makes sense

rugged ruin
#

yes ! I was thinking about using axios to send those job's information when the job is finished, would it be the best way to do it ?
i tried to find some "webhook/callback" implementation with nestjs

sleek cove
#

They give you an endpoint to call, so yeah, using an HTTP client to call that endpoint with the correct data is a pretty good way to go about it. Anything else would require re-architecting the endpoint on the clieint side, right? Like if you wanted to send a socket event via websockets/socket.io they'd have to set up a websocket server instead/parallel to their current server

raven moss
rugged ruin
raven moss
raven moss
raven moss