Sha256: 6ca6b7105e0933989fcc62930a6b0f4e3aa2ed22f904f5cf6cbaba4d5180c7e4

Contents?: true

Size: 388 Bytes

Versions: 19

Compression:

Stored size: 388 Bytes

Contents

'use strict';

function runBonjour({ port }) {
  const bonjour = require('bonjour')();
  const os = require('os');

  bonjour.publish({
    name: `Webpack Dev Server ${os.hostname()}:${port}`,
    port,
    type: 'http',
    subtypes: ['webpack'],
  });

  process.on('exit', () => {
    bonjour.unpublishAll(() => {
      bonjour.destroy();
    });
  });
}

module.exports = runBonjour;

Version data entries

19 entries across 18 versions & 6 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.18.0 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.18.2 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.16.1 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.15.2 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.18.4 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.18.1 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.14.0 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js
tang-0.2.1 spec/tang_app/node_modules/webpack-dev-server/lib/utils/runBonjour.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/webpack-dev-server/lib/utils/runBonjour.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/webpack-dev-server/lib/utils/runBonjour.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/webpack-dev-server/lib/utils/runBonjour.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/webpack-dev-server/lib/utils/runBonjour.js
tang-0.2.0 spec/tang_app/node_modules/webpack-dev-server/lib/utils/runBonjour.js
tang-0.1.0 spec/tang_app/node_modules/webpack-dev-server/lib/utils/runBonjour.js
tang-0.0.9 spec/tang_app/node_modules/webpack-dev-server/lib/utils/runBonjour.js
enju_library-0.3.8 spec/dummy/node_modules/webpack-dev-server/lib/utils/runBonjour.js