action-cable
v0.0.9
Published
A JavaScript Sockets Client for Connecting Rails ActionCable Sockets.
Downloads
33
Readme
Action Cable
A JavaScript sockets client for connecting to Rails ActionCable sockets.
Experimental
Work In Progress. Use at your own risk.
Install
npm install action-cable --save
Usage
import actionCable from 'action-cable';
// returns an Observable
let connection = actionCable(someUrl, someChannel);
connection.subscribe({next: data => {
console.log('got:', data);
}});