Node.js for forwarding information from a third-party API

Asked

Viewed 51 times

0

What I want to do with Node.js is basically LISTEN to an API (json) and process the results to send to multiple clients.

Example:

esquema da execução

What I want to know is: This My VPS computer has to exist and run the server application for 24 hours?

I thought of something like a Crontab to replace the VPS, but I think I’m wrong about this, because Node.js should be "LISTENING" to the API and not accessing it through multiple requests in a given time interval.

Could I leave the script running on the server itself forever?

I see several notifications apps that collect third-party data and wonder if that’s how they work.

1 answer

0

Research on socket., it maintains a bidirectional connection(websocket) with any customer that connects, so you can create private rooms, login mechanisms, etc.

Can send messages from client to server and vice versa.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.