Just ping them. Ping shows how fast they are by response times, so than
just filter them by your desired speed limit. It is usual technicque.
Как на Node.js запустить код?
-
const https = require('https'); https.get('https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', (resp) => { let data = ''; // A chunk of data has been received. resp.on('data', (chunk) => { data += chunk; }); // The whole response has been received. Print out the result. resp.on('end', () => { console.log(JSON.parse(data).explanation); }); }).on("error", (err) => { console.log("Error: " + err.message); });В Visual Studio работает нормально а в БАСе ничего не происходит.
-
@qash said in Как на Node.js запустить код?:
В Visual Studio работает нормально а в БАСе ничего не происходит.
https://community.bablosoft.com/topic/4450/websocket-на-node-js/6