I’m running a web app on Node that needs real-time access to events coming from the Particle Cloud. So far I’ve been using
getEventStream from the node SDK, which uses server-sent events, keeping a connection open between my web app and the Particle Cloud. I just realised I could also use webhooks, keeping each message discrete.
Is there one method that is generally seen as preferred? My hunch is that webhooks are maybe more stable as no connection has to stay open, but what are people’s opinion on this?