Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 28th, 2011  |  syntax: None  |  size: 0.51 KB  |  views: 236  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var http = require('http')
  2.   , url = require('url')
  3.   , https = require('https')
  4.   , fs = require('fs')
  5.   , crypto = require('crypto')
  6.   , io = require('../')
  7.   , tls = require('tls')
  8.   , sys = require(process.binding('natives').util ? 'util' : 'sys')
  9.   , server;
  10.  
  11.  
  12. var options = {
  13.   key: fs.readFileSync('/home/privatekey.pem'),
  14.   cert: fs.readFileSync('/home/certificate.pem')
  15. };
  16.  
  17. server = tls.createServer(function(req, res){}),
  18.  
  19. server.listen(8084);
  20.  
  21. var io = io.listen(server)
  22.   , buffer = [];
clone this paste RAW Paste Data