How to use the bonjour.tcp function in bonjour

To help you get started, we’ve selected a few bonjour examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github watson / ipp-printer / index.js View on Github external
this.server.listen(opts.port, function () {
    self.port = self.server.address().port
    debug('IPP printer "%s" listening on port %s', self.name, self.port)
    if (opts.zeroconf) bonjour.tcp.publish({ type: 'ipp', port: self.port, name: self.name })
  })

bonjour

A Bonjour/Zeroconf implementation in pure JavaScript

MIT
Latest version published 8 years ago

Package Health Score

60 / 100
Full package analysis