0.1.0 • Published 10 months ago
@crunchwrapsupreme/ws-depression v0.1.0
ws-depression
Does ws-discovery via UDP UPnP. Forked from some dude. Thanks dude.
Requirements
- node.js >= v18.0.0 (may work with other versions, tested with 18.0.0)
Documentation
Installation
npm i --save @crunchwrapsupreme/ws-depression
Credit
Built on top of a fork of https://github.com/do-/node-xml-toolkit
Using
import { discoverDevicesV4, discoverDevicesV6, deviceSocket } from 'ws-depression'
discoverDevicesV4().then(x => {
const transports = x.map(x => x.transports);
console.log(transports);
});
// ... initialize our cool socket first
deviceSocket(socket).then(deviceListener => {
deviceListener.on('match', match => console.log(match.transports));
});
The promises returned by the discover functions resolve with a list of ProbeMatch
objects. The is also the socketFactory
and deviceSocket
functions which provides more options for initialization.
0.1.0
10 months ago
0.0.18
10 months ago
0.0.17
10 months ago
0.0.16
10 months ago
0.0.15
10 months ago
0.0.14
10 months ago
0.0.13
10 months ago
0.0.12
10 months ago
0.0.11
10 months ago
0.0.10
10 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago