You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

publication-server

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publication-server - npm Package Compare versions

Comparing version

to
1.3.0

2

package.json
{
"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 @@ }