Skip to content

iopa-io/iopa-ssdp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOPA
iopa-ssdp

Build Status IOPA limerun

NPM

About

iopa-ssdp is an API-First fabric for Simple Service Discovery Protocol (SSDP) for the Internet of Things (IoT) and for Microservices Container-Based Architectures (MCBA) based on the Internet of Protocols Alliance (IOPA) specification

It servers SSDP messages in standard IOPA format

Written in native javascript for maximum performance and portability to constrained devices and services, using native HTTP parser and formatter in iopa-http

Status

Working Release

Includes:

Server Functions

  • SSDP 1.03 parser
  • Works over UDP and other IOPA transports
  • Optimized pure javascript parser with no expensive callouts to C
  • Provides Alive, Bye, Notify and Search-Responses
  • Enables Universal Plug and Play discovery (uPNP) mechanisms

Client Functions

  • SSDP 1.03 formatter
  • Works over UDP and other IOPA transports
  • Optimized pure javascript parser with no expensive callouts to C
  • Provides Search requests and matches responses
  • Enables Universal Plug and Play discovery (uPNP) mechanisms

Installation

npm install iopa-ssdp

Usage

Discovery Server and Client

var app = new iopa.App();
app.use(IopaDiscoveryServerSSDP);
app.use(IopaDiscoveryClientSSDP);

var device = new DemoDevice().context;

app.device.register(device.context)
 
app.device.probe("upnp:rootdevice", function(device){
        console.log(device.toString());
      });}
      

About

API-first fabric for Simple Service Discovery Protocol (SSDP) for the Internet of Things (IoT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published