0.1.0 • Published 8 years ago
rexjs-javascript v0.1.0
RexJS - javascript
RexJS is library for reactivity between elixir data with front-end through javascript websockets.
Modules
Installation
Javascript library require elixir core library RexJS
Add rexjs to your list of dependencies:
Command line
# with yarn
yarn add rexjs --dev
# with npm
npm install rexjs --devFile package.json
"rexjs": "^0.0.1"Usage
Create RexJS instance
let rexjs = new RexJS({
websocketUrl: 'ws://localhost/rexjs'
})Bind module with worker to RexJS instance
rexjs.bindModule("worker_name", 'module_name', function(data) {
// Work with data
})0.1.0
8 years ago