Need to convert http connection to https .
---- [login to view URL] ----
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var http = require('http').Server(app);
var io = require('[login to view URL]')(http);
const config = require("./config");
[login to view URL]('connection', function(socket){});
[login to view URL]('/', function(req, res){
[login to view URL](config);
[login to view URL] = 'utf-8';
});
var render = require('php-node')({bin:[login to view URL]});
var oldval = "";
var i = 0;
var pole = function(){
render([login to view URL], {}, function(e, res) {
if(e){
[login to view URL]("Error ",e);
return;
}
if(oldval!==res){
var index = [login to view URL]('PAN');
[login to view URL]([login to view URL](index, index+10));
oldval = res;
[login to view URL]('data', res);
}
//}
})
}
if([login to view URL]){
[login to view URL]("Using Cron");
var cron = require('node-cron');
var j = [login to view URL]([login to view URL], pole);
}else{
[login to view URL]("Using interval");
setInterval(pole, [login to view URL])
}
[login to view URL]([login to view URL]({extended:true}));
[login to view URL]([login to view URL]());
var port = [login to view URL] || 3021;
var server = [login to view URL](port, function() {
[login to view URL]("Listening on " + port);
});
------------------------------------------------------------------------------------------------------------------------------
--- [login to view URL] ---
[login to view URL] = {
php : "/usr/bin/php",
polling : __dirname+'/php/[login to view URL]',
cron : false,
cronSchedule : '0-59 * * * * *',
interval : 100,
port : 3021
};
I'm a professional web developer and have strong knowledge of Javascript, node.js and socket programming. If you are interested, we can discuss the project.
Thanks.
Hi Dear.
I have read the job description and got very interested in working on this project as it perfectly fits in my skill stack.
I can do this with in a hour.
I am ready to start the work right away and hope to work for your company.
Looking forward to hearing from you soon.
Best Regards.