UNPKG

watch_refresh

Version:

refreshes client browsers when changes are made, uses JSONP script tags to refresh, use this only in a secure/local environment, very light none-secure app for tinkering

13 lines (11 loc) 331 B
//NOT YET FINISHED // var https = require('https'); // var fs = require('fs'); // var options = { // key: fs.readFileSync('key.pem'), // cert: fs.readFileSync('cert.pem') // }; // var a = https.createServer(options, function (req, res) { // res.writeHead(200); // res.end("hello world\n"); // }).listen(8000);