Recent Changes - Search:

edit SideBar

ssdpClient Module

Simple service discovery protocol support. Useful for finding devices that support UPnP.

API

  • Client(): Create a new SSDP client.
    • search(<string> urn): Scan the local network for any devices that advertise a particular URN. Pass 'ssdp:all' to get all devices.
    • events:
      • .on('response', function (<object> headers, <int> statusCode, <object> info): Called whenever a device is found.

Example

var ssdp = require('ssdpClient');
var client = new ssdp.Client();

client.on('response', function (h, sc, i) {
  console.log('Found new device!');
  console.log(h);
});

client.search('ssdp:all');

Back to Optional JavaScript Modules

Edit - History - Print - Recent Changes - Search
Page last modified on June 25, 2015, at 10:08 AM