SHARE
TWEET

Untitled

a guest Feb 28th, 2011 270 Never
  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 = [];
RAW Paste Data
Top