1.0.0 • Published 8 years ago

binaryjs-client v1.0.0

Weekly downloads
68
License
MIT
Repository
github
Last release
8 years ago

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.