Skip to content

Instantly share code, notes, and snippets.

@nkcmr
Created February 11, 2014 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkcmr/8939888 to your computer and use it in GitHub Desktop.
Save nkcmr/8939888 to your computer and use it in GitHub Desktop.
replacing https with spdy
var express = require("express");
var app = express();
//BEFORE
var https = require("https");
https.createServer({ /*options and ssl stuff*/ }, app).listen(443);
//AFTER
var spdy = require("spdy");
spdy.createServer({ /*options and ssl stuff*/ }, app).listen(443);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment