publication-server
Advanced tools
Comparing version
{ | ||
"name": "publication-server", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -68,10 +68,14 @@ 'use strict'; | ||
* @param {Number} timeout The amount of time we'll give the WebSocket server | ||
* to gracefully shutdown. | ||
* to gracefully shutdown. | ||
* @param {Object} options Any shutdown options that you'd like to pass when | ||
* shutting the server down. These are passed through to the Primus | ||
* instance, so see https://github.com/primus/primus#destruction for | ||
* details. | ||
*/ | ||
shutdown(timeout) { | ||
this._primus.destroy({ | ||
shutdown(timeout, options) { | ||
this._primus.destroy(_.defaults(options, { | ||
// Don't force the HTTP server to close by default, that's not our job. | ||
close: false, | ||
timeout | ||
}); | ||
})); | ||
} | ||
@@ -78,0 +82,0 @@ } |
434206
0.06%11699
0.03%