From 689b018079ccea3b486eae40c378525a8df087ce Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 9 Mar 2016 14:04:05 +0200 Subject: [PATCH] Add support for HTTP2 --- package.json | 3 ++- src/server.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1e18f972..a946a005 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,8 @@ "read": "1.0.7", "request": "2.69.0", "slate-irc": "0.8.1", - "socket.io": "1.4.5" + "socket.io": "1.4.5", + "spdy": "3.2.3" }, "devDependencies": { "stylelint": "4.3.3", diff --git a/src/server.js b/src/server.js index dbc44dba..83b850de 100644 --- a/src/server.js +++ b/src/server.js @@ -31,7 +31,7 @@ module.exports = function(options) { server = require("http"); server = server.createServer(app).listen(port, host); } else { - server = require("https"); + server = require("spdy"); server = server.createServer({ key: fs.readFileSync(https.key), cert: fs.readFileSync(https.certificate)