Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
JavaScript / Typescript SDK for the DSA protocol.
Version 2.0 of this sdk is re-written with typescript and is NOT backward compatible with the DSA javascript sdk 1.x.
npm install dslink --save
or
yarn add dslink
To compile with dslink sdk's typescript definition, make sure esModuleInterop
flag is true in typescript compilerOptions.
You can zip a javascript dslink and install it on dglux-server.
A sample dslink with a basic value node at the path /value
const {DSLink, RootNode, ValueNode} = require("dslink");
class MyValueNode extends ValueNode {
constructor(path, provider) {
super(path, provider, 'myvalue', 'number');
this._value = 123;
}
}
function main() {
let rootNode = new RootNode();
rootNode.createChild('value', MyValueNode);
let link = new DSLink('mydslink', {rootNode});
link.connect();
}
main();
const {DSLink} = require('dslink/js/web');
async function main() {
let link = new DSLink('ws://localhost:8080/ws', 'json');
link.connect();
let {requester} = link;
console.log(await requester.subscribeOnce('/sys/dataOutPerSecond'));
}
main();
FAQs
JavaScript / Typescript SDK for the DSA protocol.
The npm package dslink receives a total of 45 weekly downloads. As such, dslink popularity was classified as not popular.
We found that dslink demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.