Dlaczego ten kod nie wysyla requesta? Gdy usune while request jest odbierany...
let request = require("request");
const options = {
method: 'POST',
uri: 'http://localhost:3006',
port: 8080,
body: { // mój json },
json: true
}
request(options);
while(true) {
}