websocket-rails-node
v0.1.0
Published
ES6 implimention of websocket-rails javascript client
Downloads
10
Readme
Websocket-Rails-Node
Unofficial JavaSript implemention of the Websocket-Rails JavaScript client.
WARNING: use at your own risk!
Code is based from official 0.7.0 release. All scripts are ported into ES6. Tests are not optimized and is (almost) kept as it is in the official release.
Getting Started
npm i webpack-rails-node -SUsage
Usage should be same as the official release of 0.7.0. see offiial doc for detail.
var WebSocketRails = require('websocket-rails-node');
var dispatcher = new WebSocketRails('localhost:3000/websocket');
dispatcher.bind('client_connected', data => {
console.log('client connected', data);
});