![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
dht-universal
Advanced tools
Universal wrapper for @hyperswarm/dht and @hyperswarm/dht-relay working in Node.js and the Browser
Universal wrapper for @hyperswarm/dht
and @hyperswarm/dht-relay
working in Node.js and the Browser
npm install dht-universal
In browser, it will use the @hyperswarm/dht-relay
with a WebSocket
transport, so you need to pass a relay URL to the constructor, and wait for it to be ready to confirm the websocket is open.
import { DHT } from 'dht-universal';
const node = new DHT({ relay: 'wss://dht-relay.example.com/' });
await node.ready();
Should be the same as @hyperswarm/dht.
Tested in normal DHT
DHT.keyPair([seed])
node.defaultKeyPair
node.destroyed
node.ready()
node.createServer()
node.createServer() with firewall
node.destroy([opts])
server.publicKey
server.address()
server.listen()
server.close()
server.on('listening')
server.on('connection')
server.on('close')
node.connect({keyPair}) without optional nodes
encryptedConnection.on('open')
encryptedConnection.remotePublicKey
encryptedConnection.publicKey
node.lookup(topic) without options
node.announce(topic,keyPair) without relayAddresses or options
node.unannounce
node.immutablePut(value)
node.immutableGet(value)
node.mutablePut(value)
node.mutableGet(value)
Passing in Relay
throw error on invalid relay
DHT.keyPair([seed])
DHT.create()
node.defaultKeyPair
node.createServer()
node.createServer() with firewall
node.destroy([opts])
server.publicKey
server.address()
server.listen()
server.close()
server.on('listening')
server.on('connection')
server.on('close')
node.connect() without options
encryptedConnection.on('open')
encryptedConnection.remotePublicKey
encryptedConnection.publicKey
node.lookup(topic) without options
node.announce(topic,keyPair) without relayAddresses or options
node.unannounce
node.immutablePut(value)
node.immutableGet(value)
node.mutablePut(value)
node.mutableGet(value)
FAQs
Universal wrapper for @hyperswarm/dht and @hyperswarm/dht-relay working in Node.js and the Browser
The npm package dht-universal receives a total of 0 weekly downloads. As such, dht-universal popularity was classified as not popular.
We found that dht-universal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.