Socket
Socket
Sign inDemoInstall

@crunchwrapsupreme/ws-depression

Package Overview
Dependencies
3
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @crunchwrapsupreme/ws-depression

ws-discovery over UDP multicast.


Version published
Weekly downloads
3
Maintainers
1
Install size
321 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 13 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc