
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@hideoutchat/web-sdk
Advanced tools
[![CircleCI][1]][2] [![npm version][3]][4] [![npm downloads][5]][4] [![dependencies][6]][7] [![devDependencies][8]][7] [![license][9]][10]
This library includes all the necessary pieces for communicating on the Hideout network from within a modern web browser.
Using Yarn: yarn add @hideoutchat/web-sdk
.
Using NPM: npm install @hideoutchat/web-sdk
.
import { hideout } from '@hideoutchat/web-sdk';
hideout(WebSocket).connect({
onConnect(connection) {
// Connection includes:
// * #broadcast(): Send a signed but unencrypted message to all peers.
// * #onBroadcast(): Listen for unencrypted messages from peers.
// * #onGroupEvent(): Listen for encrypted group messages from peers.
// * #onPeerEvent(): Listen for encrypted direct messages from peers.
// * #sendGroupEvent(): Send a signed and encrypted message to a group using a symmetric key.
// * #sendPeerEvent(): Send a signed and encrypted DH message to a peer.
},
onDisconnect() {
// Recommended:
// * Clean up after #onConnect()
// * Retry #connect() with exponential back-off.
},
onError(error) {
// This function gets called any time an error occurs.
// Fatal errors will also trigger #onDisconnect().
},
onPublicKey(publicKey) {
// EC384 public key in JWK JSON format
// The `kid` property should be a SHA-256 hash of the public key.
},
privateKey: {
// EC384 private key in JWK JSON format
// Generate this however you wish.
// The `kid` property should be a SHA-256 hash of the public key.
},
// The URL of a Hideout rendezvous node listening on a secure web socket
url: 'wss://example.com:1234'
});
FAQs
[![CircleCI][1]][2] [![npm version][3]][4] [![npm downloads][5]][4] [![dependencies][6]][7] [![devDependencies][8]][7] [![license][9]][10]
The npm package @hideoutchat/web-sdk receives a total of 2 weekly downloads. As such, @hideoutchat/web-sdk popularity was classified as not popular.
We found that @hideoutchat/web-sdk 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.