/salt-channel-js

A JavaScript implementation of a Salt Channel v2; client-side code that connects on top of WebSocket.

Primary LanguageJavaScriptMIT LicenseMIT

salt-channel-js

A JavaScript implementation of a Salt Channel client. Client-side code that connects on top of WebSocket. Works with both on browser and NodeJS Salt Channel is based on TweetNaCl and

Dependencies

  • SaltChannel.js uses TweetNaCl-es6.js which has no dependencies.
  • Need at least NodeJS version 14 if running with Node.

Usage

Download the source code and include using import.

import saltchannel from 'path/to/saltchannel.js';

Testing

To run test in NodeJS version 14:

$ npm run test
$ npm run browser

To run test in browser: