binaryjs-client

BinaryJS Client for browsers bundled for Webpack

Usage no npm install needed!

<script type="module">
  import binaryjsClient from 'https://cdn.skypack.dev/binaryjs-client';
</script>

README

BinaryJS Client

BinaryJS client package for use in the browser with Webpack/Browserify

All credit goes to original authors of BinaryJS. I have just modified it to be suitable as an npm package.

Usage

Install using npm:

npm install binaryjs-client

Then import the package (ES6):

// app.js
import {BinaryClient} from 'binaryjs-client';

const client = new BinaryClient('ws://localhost:9000');

Or ES5:

// app.js
var BinaryClient = require('binaryjs-client').BinaryClient;

const client = new BinaryClient('ws://localhost:9000');

Built using BinaryJS version 0.2.2.