daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var https = require('https');
  2. var http = require('http');
  3. var fs = require('fs');
  4.  
  5. var options = {
  6.     key:    fs.readFileSync('server.key'),
  7.     cert:   fs.readFileSync('server.crt'),
  8.     requestCert:        true,
  9.     rejectUnauthorized: false
  10. };
  11. var vidStreamer = require("vid-streamer");
  12.  
  13. var app = https.createServer(options, function (req, res){
  14.     res.writeHeader(blaaa);
  15.     vidStreamer.call();
  16. });
  17. //var app = http.createServer(vidStreamer);
  18. app.listen(63000);
  19. console.log("VidStreamer.js up and running on port 63000");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top