diff --git a/package.json b/package.json index e649dc06e..26db3f06e 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,6 @@ "pem": "^1.14.3", "primus": "^7.0.0", "semver": "^7.1.1", - "spdy": "^4.0.0", "split": "^1.0.0", "stat-mode": "^1.0.0", "unzipper": "^0.10.10", diff --git a/src/index.js b/src/index.js index d1c06e5f8..d4b49d413 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,7 @@ const debug = require('debug')('signalk-server') const DeltaCache = require('./deltacache') const path = require('path') const http = require('http') -const spdy = require('spdy') +const https = require('https') const { FullSignalK, getSourceId } = require('@signalk/signalk-schema') const SubscriptionManager = require('./subscriptionmanager') const ports = require('./ports') @@ -392,7 +392,7 @@ function createServer(app, cb) { cb(err) } else { debug('Starting server to serve both http and https') - cb(null, spdy.createServer(options, app)) + cb(null, https.createServer(options, app)) } }) return