0.1.0 • Published 3 years ago

@crunchwrapsupreme/ws-depression v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm (scoped) npm Node.js CI

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

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago