0.1.0 • Published 2 years ago

@crunchwrapsupreme/ws-depression v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago