# super-ssdp

> Super SSDP implementation, specially for p2p apps

Latest version **0.0.3** (published 2014-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install super-ssdp
pnpm add super-ssdp
yarn add super-ssdp
bun add super-ssdp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-07-19 |
| First published | 2014-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Carlos Guerrero |
| Maintainers | guerrerocarlos |
| Keywords | ssdp |

## Links

- npm: https://www.npmjs.com/package/super-ssdp
- Repository: git@github.com:guerrerocarlos/super-ssdp
- Homepage: https://github.com/guerrerocarlos/super-ssdp
- Issues: https://github.com/guerrerocarlos/super-ssdp/issues
- npm.io page: https://npm.io/package/super-ssdp

## Dependencies (2)

- [ip](https://npm.io/package/ip.md) ^0.3.0
- [peer-ssdp](https://npm.io/package/peer-ssdp.md) 0.0.2

## Recent versions

- 0.0.3 (latest) — 2014-07-19
- 0.0.2 — 2014-07-19
- 0.0.1 — 2014-07-19

## README

super-ssdp
=========

Implements a <Super Simple> API for peer2peer aplications based based in peer-ssdp node module 
that implements the SSDP device discovery as specified in
http://www.upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.0-20080424.pdf

Installation
------------
npm install super-ssdp

Usage
-----
Announce your peer with ssdp.createPeer()

```
var ssdp = require('super-ssdp');
var ip = require('ip')
ssdp.createPeer({'name': 'CoolP2PAplicationName', 'url':'http://'+ip.address()+':8080'}); 
```

Only peers with the same 'name' will be discovered in the local network.

Every time a new Peer connects, the 'found' signal is emitted:

````
peer.start()

peer.on('found', function(address){
  console.log('OTHER PEER FOUND!!!! >>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<', address)
})

````

---
_Source: https://npm.io/package/super-ssdp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
