This package has been deprecated

Author message:

moved to package : dslink@2.0.0

dslink-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

sdk-dslink-ts

typescript/javascript sdk for DSA protocol

const { DSLink, RootNode, ValueNode, ActionNode, Permission} = require("dslink-js");

class MyValueNode extends ValueNode {
  constructor(path, provider) {
    super(path, provider, 'myvalue', 'number', Permission.WRITE);
    this._value = 123;
  }
}

class MyRootNode extends RootNode {
  initialize() {
    this.createChild('a', MyValueNode);
  }
}

async function main() {
  let link = new DSLink('mydslink', {rootNode: new MyRootNode()});
  await link.connect();
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i dslink-js

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

1.43 MB

Total Files

171

Last publish

Collaborators

  • rinick